Bug 368625 - Renaming getter/setter method doesn't change the parameter name and the JavaDoc
Summary: Renaming getter/setter method doesn't change the parameter name and the JavaDoc
Status: CLOSED DUPLICATE of bug 64698
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-15 11:55 EST by Josef Lehner CLA
Modified: 2012-01-16 12:02 EST (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 Josef Lehner CLA 2012-01-15 11:55:53 EST
Build Identifier: Version: Indigo Release Build id: 20110615-0604 - I think every version is affected

Dear Eclipse-Team,

When I use Outline - Refactor - Rename: Enable "Rename getter/setter method" both, the name of the parameter and the standard JavaDoc generated by Eclipse are not renamed to the new value.

It would be nice if you could fix this, because it is annoying to do manually.
(I know, there is an option "Update textual occurences..." but this is only a workaround and it does not rename the parameter of the setter method).

Best regards

Josef

Example: name will be renamed to surname

	private String name;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	} 

--------------------------------------------

	private String surname;

        /**
	 * @return the name
	 */
	public String getSurname() {
		return surname;
	}

	/**
	 * @param name the name to set
	 */
	public void setSurname(String name) {
		this.surname = name;
	}


Reproducible: Always

Steps to Reproduce:
1. Create a field
2. Generate getter/setter methods + JavaDoc
3. Rename field and enable both "Rename setter" and "Rename getter" on the "Rename field" dialog
Comment 1 Markus Keller CLA 2012-01-16 12:02:13 EST

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