Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.0-alpha-1, 2.5.13, 3.0.6
-
None
-
None
Description
Consider the following:
package p class A { protected int x }
package q @groovy.transform.CompileStatic class B extends A { int m() { return x } }
In this case (or if x is static), the compiler writes calls to dynamic property methods. This should be a direct field read.