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.

Bug 206651

Summary: inconsitent rename (getter/setter)
Product: java Reporter: muellermi <muellermi>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: VERIFIED WONTFIX    
Severity: normal    
Priority: P4    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description muellermi 2011-12-22 22:38:16 UTC
Product Version = NetBeans IDE 7.1 (Build 201112051121)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.0-b17

given a field "title"
- encapsulate field creates getTitle, setTitle
- rename field via menu: NB displays an option to rename getter/setter too
### rename by Ctrl-R which should be a shortcut to rename: no such option displayed ###
### rename on getter or setter: There is no option to rename the complementary method ###

given a field "_title"
- encapsulate field creates getTitle, setTitle
### rename field via menu: NB _does not_ display an option to rename getter/setter too (like in encapsulate field, the "_" should be ignored) ###
Comment 1 everflux 2012-10-19 11:36:20 UTC
I noticed the problem as well: When doing an inline rename (CTRL-R) the accessors are not refactored.
Comment 2 Martin Balin 2016-07-07 07:17:05 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 3 everflux 2016-07-10 18:52:29 UTC
Inline rename allows renaming of getters/setters as well in NB 8.1