Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
Description
Take the following code:
@groovy.transform.CompileStatic class Test { A a = new A() void foo() { a.x = 1 } } class A { int x } new Test().foo()
The static compiler sets the "x" variable from A using ScriptBytecodeAdapter.setProperty although it could use A#setX.