Project: JDT
Bug 186334 [introduce parameter object] wrong names for constructor params
Reported: 2007-05-10 06:52:45 | Status: verified fixed

M7 - use introduce parameter object on the folloing method and change field names to 'fX', 'fY' and 'fZ' package p; public class A extends TestCase { private void foo(int x, int y, int z) { } } - the result not only used the field names for the fields, but also for the parameters. The parameters should be unchanged from the original parameters (or we offer to configure this) public class FooParameter { public int fX; public int fY; public int fZ; public FooParameter(int fX, int fY, int fZ) { this.fX = fX; this.fY = fY; this.fZ = fZ; } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceParameterObject/testDelegateCreationCodeStyle/out/TestDelegateCreationCodeStyle.java org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceParameterObject/testSimpleEnclosingCodeStyle/in/TestSimpleEnclosingCodeStyle.java org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceParameterObject/testSimpleEnclosingCodeStyle/out/TestSimpleEnclosingCodeStyle.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/ParameterObjectFactory.java