Project: JDT
Bug 259095 [introduce parameter] Error reported in dialog/preview but result is OK
Reported: 2008-12-17 08:40:21 | Status: resolved fixed

I20081216-0800. 1. start fresh workspace 2. paste this source: package p; public class TestInlineRename { int x = foo(1, 2, 3); public int foo(int xg, int yg, int zg) { return xg + yg; } } class B extends TestInlineRename { public int foo(int x, int y, int z) { System.out.println(x); foo(x, y, z); foo(x, z, y); super.foo(x, z, y); return super.x; } } 3. select method declaration TestInlineRename.foo 4. Refactor > Introduce Parameter Object... 5. click 'OK' ==> unexpected dialog comes which shows errors 6. click 'Continue' ==> correct code is generated

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceParameterObject/testSubclassInCU/in/TestSubclassInCU.java org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceParameterObject/testSubclassInCU/out/FooParameter.java org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceParameterObject/testSubclassInCU/out/TestSubclassInCU.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/IntroduceParameterObjectTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/IntroduceParameterObjectProcessor.java