Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.19, 3.0.4, 2.5.12
-
None
Description
Consider the following:
class A { private static X = 1 static getX() { 2 } static class B { } } class C extends A.B { void test() { print X } } new C().test()
Execution of this script prints "1" when "2" is expected. If static property name is changed to "XY" or "x" the resolution works as expected.
Attachments
Issue Links
- depends upon
-
GROOVY-9645 Inconsistencies in JavaBean naming for property access
- Closed
- relates to
-
GROOVY-5852 Static import on demand resolves capitalised reference
- Closed