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 179189 - Parameter name refactoring affects all Javadocs in file
Summary: Parameter name refactoring affects all Javadocs in file
Status: RESOLVED DUPLICATE of bug 176784
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-04 07:12 UTC by fommil
Modified: 2010-01-04 07:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fommil 2010-01-04 07:12:29 UTC
If the user refactors the name of a parameter (of method or constructor), all the @param values in Javadoc comments in the entire file are renamed. This is a bug, only the relevant Javadoc should be edited.

Testcase: create the following class and attempt to refactor the parameter 'x' in either constructor. Note that the Javadoc value changes in two places.


public class TestRefactor {

	/**
	 * @param x
	 * @param y
	 */
	public TestRefactor(int x, int y) {
	}

	/**
	 * @param x
	 */
	public TestRefactor(int x) {
	}
}
Comment 1 Jan Pokorsky 2010-01-04 07:26:09 UTC

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