This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Using the refactoring Encapsulate field with generation Property Change Support for setter of variable (i.e. id) results in the following code: private Integer id; public void setId(Integer id) { java.lang.Integer oldId = id; this.id = id; propertyChangeSupport.firePropertyChange(PROP_ID, oldId, id); } oldId and id are the same value thus no property change is thrown. The assignment to oldValue should be prefixed by "this.". java.lang.Integer oldId = this.id;
http://hg.netbeans.org/jet-main/rev/2dc2d466006a
Integrated into 'main-golden', will be available in build *201210020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2dc2d466006a User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: #219140 - Encapsulate Field PCS changed to use longName