Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0-beta-4
-
Fix Version/s: None
-
Component/s: parser
-
Labels:None
-
Environment:All
Description
Integer x = 2147483648;
println x.class
println x
This will create a long and "successfully" assign it to an Integer, resulting in the following output:
class java.lang.Integer
-2147483648
This could be a little confusing for a user.
Issue Links
- depends upon
-
GROOVY-256
Numeric literals: default BigDecimal for decimals, support suffixes
-
- is depended upon by
-
GROOVY-753
complete parser
-
- is related to
-
GROOVY-339
Problem coercing 7/3 to double
-
This issue should be resolved after the code from issue 256 is committed.