Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.0-beta-4
-
None
-
None
-
mac os x; beta-4 with latest snapshot jar
Description
Running this:
#!/usr/bin/env groovy
public class Test {
public void test()
}
Test t = new Test()
Results in:
Exception in thread "main" java.lang.VerifyError: (class: Test, method:
test signature: ()V) Expecting to find integer on stack
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at test.class$(test.groovy)
at test.run(test.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Removing "int" eliminates the crash.