class Something {
static int VALUE = 10
}
class AnotherThing {
def method(int somearg=Something.VALUE) { }
}
new AnotherThing().method()
The above throws a MissingPropertyException:
groovy.lang.MissingPropertyException: No such property: Something for class: AnotherThing
fixed