Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-6
-
Fix Version/s: 1.0-JSR-6
-
Component/s: class generator
-
Labels:None
-
Environment:Groovy Version: 1.0-RC-01-SNAPSHOT JVM: 1.5.0_06-b05
-
Testcase included:yes
-
Number of attachments :
Description
class Something {
static int VALUE = 10
}
class AnotherThing {
def method(somearg=Something.VALUE) { }
}
The above throws an IncompatibleClassChangeError.
Nuts, made a mistake in my description (is there a way to edit that I don't see?)
class Something {
static int VALUE = 10
}
class AnotherThing {
static method(int somearg=Something.VALUE) { }
}
AnotherThing.method()
This demonstrates the exception. As does the attached test case.