Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.4
-
None
-
Windows XP
Description
This expression works properly in Groovy console, but it does not work
in groovysh:
[1,2,3] as Object[]
In groovysh it throws exception:
ERROR groovy.lang.MissingMethodException: No signature of method:
org.codehaus.groovy.tools.shell.Groovysh$_cl
osure1.call() is applicable for argument types: (java.lang.Integer,
java.lang.Integer, java.lang.Integer) valu
es:
However,
[1,2,3] as int[]
works as expected.
[1,2,3] as Integer[]
throws similar exception.
All these expressions work properly in Groovy console.