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 56255 - rename variable should rename its setters and getters
Summary: rename variable should rename its setters and getters
Status: RESOLVED DUPLICATE of bug 47625
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-11 11:27 UTC by Pavel Rehak
Modified: 2007-04-03 18:02 UTC (History)
0 users

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 Pavel Rehak 2005-03-11 11:27:27 UTC
Product Version       = NetBeans IDE Dev (Build 200503092050)
Operating System      = Mac OS X version 10.3.8 running on ppc
Java; VM; Vendor      = 1.4.2_05; Java HotSpot(TM) Client VM 1.4.2-38; Apple Computer, Inc.
------
create new variable int i;
invoke refactoring -> encapsulate fields on i
methods setI() and getI() are created
now invoke refactoring -> rename field and rename i to j
setI() and getI() should be refactored to setJ() getJ() as well

our refactoring:
   private int j;
    public int getI() {
        return j;
    }
    public void setI(int i) {
        this.j = i;
    }

expected behaviour:
   private int j;
    public int getJ() {
        return j;
    }
    public void setJ(int j) {
        this.j = j;
    }
Comment 1 Jan Becicka 2005-05-20 09:55:02 UTC

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