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 - inconsitent rename (getter/setter)
Summary: inconsitent rename (getter/setter)
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.1
Hardware: All All
: P4 normal with 1 vote (vote)
Assignee: Ralph Ruijs
Depends on:
Reported: 2011-12-22 22:38 UTC by muellermi
Modified: 2016-07-10 18:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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