Bug 123084 [quick fix] Add unimplemented method does not resolve name clash
Version: 3.2.0 Build id: I20060105-0800 Having: package test; public class Class {} package test; public interface IT { public void foo(java.lang.Class clazz); } package test; public class Test implements IT {} And applaying add unimplementd methods on Test results in: package test; public class Test implements IT { public void foo(Class clazz) {} } Should be: package test; public class Test implements IT { public void foo(java.lang.Class clazz) {} }
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java
buf.append("    public void foo(int bar) {\n");
		buf.append("        this.bar= bar;\n");
		buf.append("    }\n");
		buf.append("}\n");
		expected[0]= buf.toString();
		assertExpectedExistInProposals(proposals, expected);
	}
	public void testAddTypeParametersToClassInstanceCreationTest01() throws Exception {
		IPackageFragment pack1= fSourceFolder.createPackageFragment("pack", false, null);
		StringBuffer buf= new StringBuffer();
		buf.append("package pack;\n");
		buf.append("import java.util.ArrayList;\n");
		buf.append("import java.util.List;\n");
		buf.append("public class E {\n");
		buf.append("    public void foo() {\n");
		buf.append("        List<E> l= new ArrayList(); \n");
		buf.append("    }\n");
		buf.append("}\n");
		ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
		Hashtable options= JavaCore.getOptions();
		options.put(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION, JavaCore.WARNING);
		JavaCore.setOptions(options);
		
		CompilationUnit astRoot= getASTRoot(cu);
		ArrayList proposals= collectCorrections(cu, astRoot);
		assertCorrectLabels(proposals);
		assertNumberOfProposals(proposals, 2);
		String[] expected= new String[1];
		buf= new StringBuffer();
		buf.append("package pack;\n");