Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-beta-4
-
None
-
All
Description
ClassGenerator does not correctly generate byte code for numeric constants other than Integer and Double. For example, if a number is too large to fit in an Integer, a Long is created by ASTBuilder. However, ClassGenerator assumes it is an Integer, incorrectly generating byte code which will fail at runtime. An error should be produced at compile time.
Attachments
Issue Links
- depends upon
-
GROOVY-256 Numeric literals: default BigDecimal for decimals, support suffixes
- Closed