Project: JDT
Bug 185759 [introduce parameter object] should test if class already exists
Reported: 2007-05-07 09:41:37 | Status: verified fixed

M7 - in the following example use 'Introduce Parameter Object' on 'add' - name the new class E - create it as inner class - the result doesn't compile as 'E' as the new class conflicts with the existing 'E' - The input dialog should make sure that no class exists at the destination with the same name package e; public class A { class E { } public int add(int x, int y) { return x + y; } }

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/IntroduceParameterObjectRefactoring.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceParameterObjectWizard.java