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.
[ JDK VERSION : 1.5.0_01 ] Consider the following simple class: public class MyObject { private int value; public int getValue() { return value; } public void setValue(int value) { this.value = value; } } If I choose "Refactor->Rename" with the caret over the declaration of the field "value" the refactoring will affect all references to the field, but will not change the names of the getter and setter methods associated with the property. It would be more convenient, in the cases where there is a pair of methods with names matching the names that would have been automatically chosen by "Refactor->Encapsulate Fields...", if the names of the accessor methods were updated to reflect the change in the name of the property. Of course the user will have the option to choose not to perform the renaming of the methods if they have "preview changes" enabled. So, for example, in the case above if I chose to rename the field "value" to be "size" the result of this refactoring would be: public class MyObject { private int size; public int getSize() { return size; } public void setSize(int size) { this.size = size; } }
Note: I meant to file this as an enhancement; I neglected to change the input in the bug submission form.
*** This issue has been marked as a duplicate of 47625 ***