Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.0
-
Fix Version/s: 1.8.1
-
Component/s: primtive opts
-
Labels:None
-
Number of attachments :
Description
In Groovy 1.8.0, this works fine:
groovy:000> int x; println x 0 ===> null
Whereas this blows up:
groovy:000> int x; 1.times { println x }
ERROR org.codehaus.groovy.runtime.typehandling.GroovyCastException:
Cannot cast object 'null' with class 'null' to class 'int'. Try
'java.lang.Integer' instead
at groovysh_evaluate.run (groovysh_evaluate:2)
...
Is that a known issue?
bug and not known, because new in 1.8. Please fill a bug report for this
bye blackdrag
fixed