Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.0
-
None
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