Bug 198026 - [rename] Rename refactoring on getter/setter should rename parameter too
Summary: [rename] Rename refactoring on getter/setter should rename parameter too
Status: RESOLVED DUPLICATE of bug 64698
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-26 16:48 EDT by Willian Mitsuda CLA
Modified: 2007-07-30 03:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Willian Mitsuda CLA 2007-07-26 16:48:35 EDT
If you have some class like:

public class Foo {

private int bar;

public void setBar(int bar) {
this.bar = bar;
}

public int getBar() {
return bar;
}

}

If you run rename refactoring on "bar" attribute, the wizard offers you to rename the getter/setter. However the parameter on setter is not renamed, so we could end up with something like this:

public void setLalala(int bar) {
this.lalala = bar;
}

If the setter parameter name is equals the attribute being renamed, the wizard should rename it too.
Comment 1 Martin Aeschlimann CLA 2007-07-30 03:55:14 EDT

*** This bug has been marked as a duplicate of bug 64698 ***