Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.1-beta-1
-
None
-
None
-
Windows XP SP2
JVM 1.6.0_01-b06
Description
The following code produces VerifyError, this can be avoided by either removing try-catch or the call to super()
class A {}
class B extends A {
B() {
super()
try
catch(RuntimeException e) {
}
}
def compute() {}
}
println B.class
Exception thrown: java.lang.VerifyError: (class: B, method: <init> signature: ()V) Inconsistent stack height 0 != 1
java.lang.VerifyError: (class: B, method: <init> signature: ()V) Inconsistent stack height 0 != 1
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at Script5.class$(Script5)
at Script5.run(Script5:15)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:485)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:71)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:694)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:616)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:506)
at org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:144)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:110)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
at groovy.ui.Console$_runScript_closure8.doCall(Console.groovy:508)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:71)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:694)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:616)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:97)
at groovy.ui.Console$_runScript_closure8.doCall(Console.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:71)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:694)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:616)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:506)
at groovy.lang.Closure.call(Closure.java:209)
at groovy.lang.Closure.call(Closure.java:204)
at groovy.lang.Closure.run(Closure.java:285)
at java.lang.Thread.run(Thread.java:619)