Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.0-beta-4
-
None
-
None
-
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.
Attachments
Issue Links
- depends upon
-
GROOVY-256 Numeric literals: default BigDecimal for decimals, support suffixes
- Closed
- is depended upon by
-
GROOVY-753 complete parser
- Closed
- is related to
-
GROOVY-339 Problem coercing 7/3 to double
- Closed