Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
class Foo { private int i = 1 @groovy.transform.CompileStatic def m() { new String().with {++i}} } assert new Foo().m() == 2 class Bar extends Foo {} assert new Bar().m() == 2
The static compiler is unable to generate code which handles the mutation of a private field like in the example above.
Attachments
Issue Links
- is related to
-
GROOVY-9892 STC: VerifyError when embedding unary pre/postfix inc/decrement operation of outer field in GString
-
- Closed
-
- relates to
-
GROOVY-11412 SC: outer class field and self dynamic property
-
- In Progress
-
-
GROOVY-7276 static compiler fails to eliminate dynamic property lookup
-
- Closed
-