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 49223 - Refactor-->Rename of property does not change getter and setter
Summary: Refactor-->Rename of property does not change getter and setter
Status: RESOLVED DUPLICATE of bug 47625
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-17 22:23 UTC by athompson
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2004-09-17 22:23:28 UTC
jdk-1.5
linux
daily 17 sep 2004

1. add this class:

public class Test {
    private String foo;
    public void setFoo(String foo) {
        this.foo = foo;
    }
    public String getFoo() {
        return foo;
    }
}

2. place cursor on first occurrence of 'foo'
3! Refactor-->Rename to 'bar'. the getter and
setter is not also renamed. at the very least you
should offer an option for this which defaults to
yes, since most often this certainly is what the
user wants.

haven't looked at the code, but it should be
relatively easy to just programatically refactor
the getter and setter methods as well.
Comment 1 Martin Matula 2004-09-19 14:33:32 UTC
This is an enhancement request rather than a defect. Since it involves
UI changes, I doubt we can address it for 4.0. CC'ing our UI engineer
to evaluate the implact on the UI.
Comment 2 athompson 2004-11-05 01:00:06 UTC
*** Issue 50924 has been marked as a duplicate of this issue. ***
Comment 3 Martin Matula 2004-11-11 16:05:07 UTC

*** This issue has been marked as a duplicate of 47625 ***