Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
-
Groovy 1.0.1-SNAPSHOT Java 1.5
Description
class Super {
def var
def Super (String var)
}
class Child extends Super {
def s = "hello"
def Child ()
}
def c = new Child ()
Caught: java.lang.VerifyError: (class: Child, method: <init> signature: ()V)
Expecting to find object/array on stack
at TestSuper.class$(TestSuper.groovy)
at TestSuper.run(TestSuper.groovy:15)
at TestSuper.main(TestSuper.groovy)
Obviously s should be declared static or initialized in the constructor but
the error message should reflect that