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.
Product Version = NetBeans IDE Dev (Build 201212220001) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.7.0_10 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.6-b04 Let's have an attribute like private String _info; Next, call refactor, encapsulate field. NetBeans will generate public String getInfo() { return _info; } public void setInfo(String info) { this._info = info; } Now, try to rename _info, let's say to _information. NB will rename this attribute only. I suggest to - rename the attribute - rename getter and setter - rename setter's parameter If you try to rename getInfo, NB will rename this and all it's occurencies in Java sources I suggest to - rename getter (existing) - rename corresponding setter - rename all occurrencies of getter and setter - rename all coprresponding properties of EL expressions in JSF/JSP pages
Created attachment 129703 [details] IDE log
http://blog.mueller-bruehl.de/programming/rename-property/
Fixed in jet-main by 80f139ccdada
Integrated into 'main-golden', will be available in build *201305021042* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/80f139ccdada User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: #228870 - New API to support CodeStyle's prefix/suffix #65315 #81243 #224242 - Use CodeStyle's prefix and suffix configuration