Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Duplicate
-
Affects Version/s: 1.0-RC-1
-
Fix Version/s: 1.1-beta-1
-
Component/s: bytecode
-
Labels:None
-
Environment:Version 1.0-RC-2, JDK 1.5, Windows XP
-
Number of attachments :
Description
Error occures in groovy-1.0-RC-02, it did'nt occure in JSR6
When calling 'groovy SuperError.groovy' I get the error:
Caught: java.lang.VerifyError: (class: B, method: m signature: (Ljava/lang/Object;)V) Inconsistent stack height 1 != 0
In the method call super.m(p1, 'called from B') the super keyword is not necessary, but it should'nt result in an error.
Here is the code:
----------------------------------------
// SuperError.groovy
class SuperError extends GroovyTestCase {
static void testSuperError()
}
class A {
void m(p1)
void m(p1, p2)
{ println 'A.m with parameters: ' + p1 + ', ' + p2 }}
class B extends A {
void m(p1)
}
----------------------------------------
Issue Links
- duplicates
-
GROOVY-1539
java.lang.VerifyError
-
bug in handling return