class AnotherThing {
def method(somearg=Something.VALUE) { }
}
The above throws an IncompatibleClassChangeError.
Description
class Something {
static int VALUE = 10
}
class AnotherThing {
def method(somearg=Something.VALUE) { }
}
The above throws an IncompatibleClassChangeError.
Edward Povazan added a comment - 14/Jun/06 02:14 AM 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.
looks like neither the scoping, nor the class resolving was done for default arguments, this is corrected now and the resulting code does now no longer produce the error. Fixed.
Jochen Theodorou added a comment - 15/Jun/06 12:33 PM looks like neither the scoping, nor the class resolving was done for default arguments, this is corrected now and the resulting code does now no longer produce the error. Fixed.
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.