Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Consider the following:
class Outer { private static int VALUE = 1 static class Inner { def getProperty(String name) { if (name == "VALUE") return 2 } void test() { print VALUE } } } new Outer.Inner().test()
Expecting "2" but prints "1". If Inner provides a "generic" property via getProperty, get or via a Map interface it is not used.
Attachments
Issue Links
- is related to
-
GROOVY-9569 SC: new compiler error for access of static, non-final, outer-class field
- Closed
-
GROOVY-9655 Groovy 3.0.5 regression with the "with" keyword
- Closed
-
GROOVY-10981 STC: type inference of variable expression with superclass field and access method
- Closed
- relates to
-
GROOVY-11412 SC: outer class field and self dynamic property
- Resolved