Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.5, 1.8-beta-2
-
Fix Version/s: 1.7.5, 1.8-beta-2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Groovy compiler seems to be generating calls like {{ new Integer() }} and {{ new Long() }} (also for other number wrapper types), which FindBugs tool calls out as performance issues and suggests that the equivalent calls {{ Integer.valueOf() }} and {{ Long.valueOf() }} be used.
Class generation needs to change a bit to support it to reduce the errors reported by FindBugs for groovy classes.
Issue Links
- relates to
-
GROOVY-4152
Groovy code using constants seems unsuitable for hotswap
-
Patch attached for review.