Consider the following:
class C {
String foo
void setFoo(String value) {
this.foo = value
}
}
@groovy.transform.CompileStatic
class D {
void meth(C c) {
c.foo = ''
}
}
Renaming "setFoo" to "setX" incorrectly renames bean-style reference "c.foo" to "c.setX". Removing the @CompileStatic and renaming properly changes the expression to "c.x = ''".
Consider the following:
Renaming "setFoo" to "setX" incorrectly renames bean-style reference "c.foo" to "c.setX". Removing the
@CompileStaticand renaming properly changes the expression to "c.x = ''".