Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368625

Summary: Renaming getter/setter method doesn't change the parameter name and the JavaDoc
Product: [Eclipse Project] JDT Reporter: Josef Lehner <josef1207>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: markus.kell.r
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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 ***