Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.x
-
None
Description
Test code:
class Foo { private static final String wth='wth' def foo() { 1.times { println wth } } } class Bar extends Foo { } new Bar().foo()
Causes “groovy.lang.MissingPropertyException: No such property: wth for class: Bar”. Seems to affect all 4* versions (myself I've tested just a couple of them), did work in 3 and I am told it again works in 5.
There's an easy work-around, an explicit qualifier, in this case "println Foo.wth", fixes the problem.