Bug 102142 [quick fix] Change method signature quick fix renames parameter
In 3.1. Code: public class Foo { Foo(String string) { System.out.println("" + string); } private void bar() { new Foo(3); } } The compile error on new Foo(3) offers a quick fix: "Change constructor Foo(String) to Foo(int)". Selecting it changes not only the type, but the name of the parameter: String string becomes int i. Accepting this default leads to a compile error.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ChangeMethodSignatureProposal.java
addLinkedPosition(rewriter.track(textElement), false, linkedName);
	}
	private TagElement findThrowsTag(MethodDeclaration decl, Name exception) {
		Javadoc javadoc= decl.getJavadoc();
		if (javadoc != null) {
			String name= ASTNodes.getSimpleNameIdentifier(exception);
			return JavadocTagsSubProcessor.findThrowsTag(javadoc, name);
		}
		return null;
	}
	private TagElement insertThrowsTag(ListRewrite tagRewriter, List exceptions, int currentIndex, TagElement newTagElement) {
		HashSet previousNames= new HashSet();
		for (int n = 0; n < currentIndex; n++) {
			Name curr= (Name) exceptions.get(n);
			previousNames.add(ASTNodes.getSimpleNameIdentifier(curr));
		}
		JavadocTagsSubProcessor.insertTag(tagRewriter, newTagElement, previousNames);
		return newTagElement;
	}
	public String getParamNameGroupId(int idx) {
		return "param_name_" + idx; 
	}
	public String getParamTypeGroupId(int idx) {
		return "param_type_" + idx; 
	}
	public String getExceptionTypeGroupId(int idx) {
		return "exc_type_" + idx; 
	}
}