Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 206651 - inconsitent rename (getter/setter)
inconsitent rename (getter/setter)
Status: VERIFIED WONTFIX
Product: java
Classification: Unclassified
Component: Refactoring
7.1
All All
: P4 with 1 vote (vote)
: 8.0
Assigned To: Ralph Ruijs
issues@java
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-22 22:38 UTC by muellermi
Modified: 2016-07-10 18:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo