Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-5
-
None
Description
The following script:
def m = 1
println [c: 3, x: m]
produces:
here
here
Caught: java.lang.VerifyError: (class: test, method: run signature: ()Ljava/lang/Object Expecting to find object/array on stack
java.lang.VerifyError: (class: test, method: run signature: ()Ljava/lang/Object Expecting to find object/array on stack
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
at java.lang.Class.getMethod0(Class.java:2611)
at java.lang.Class.getMethod(Class.java:1579)
at groovy.lang.GroovyShell.runMainOrTestOrRunnable(GroovyShell.java:268)
at groovy.lang.GroovyShell.run(GroovyShell.java:244)
at groovy.lang.GroovyShell.run(GroovyShell.java:173)
at groovy.ui.GroovyMain.processOnce(GroovyMain.java:459)
at groovy.ui.GroovyMain.run(GroovyMain.java:276)
at groovy.ui.GroovyMain.process(GroovyMain.java:262)
at groovy.ui.GroovyMain.main(GroovyMain.java:138)
at groovy.lang.GroovyShell.main(GroovyShell.java:81)
Note that the script causes "here, here" to be printed before it fails - very odd!