Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.8.0, 2.4.0-rc-1
Description
class Test { static main(String[] args) { def x = 2.0 def y = 2.0 def z = 2.0 } }
For the code above, optimizer generates the code below which has the optimization for first constant wrong (it should also be Object x = $const$0).
public static Object main(String[] args) { Object x = new BigDecimal("2.0"); Object y = $const$0; Object z = $const$0; }