Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Consider the following:
class A { void setX(Date value) {} void setX(Long value) {} } class B extends A { void m() { x = 42L x = new Date() } }
When compiled with @compileStatic the method "m" contains calls to ScriptBytecodeAdapter.setGroovyObjectProperty for the assignment statements. If "x" is replaced by "this.x" direct setter calls are written instead, as expected.