Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
5.0.0-alpha-8
-
None
-
None
Description
The test case described in GROOVY-10985 fails to execute as expected under static compilation if a single reference to the private outer class field is introduced.
@groovy.transform.CompileStatic class Outer { private static int VALUE = 1 static class Inner { def getProperty(String name) { if (name == "VALUE") return 2 } void test() { if (Outer.VALUE > 0) print 'positive' // creates private access bridge print VALUE // classgen now targets private access bridge } } } new Outer.Inner().test()
Attachments
Issue Links
- is related to
-
GROOVY-10985 Precedence of self property over outer class field
-
- Closed
-