Project: JDT
Bug 49022 Extract Method: changed parameter name not used in return statement [refactoring]
Reported: 2003-12-17 10:11:49 | Status: resolved fixed

I20031216-2000: void execute() { int i= 2; i= i * 2; // extract this statement int a= i; } Extract the line and change the parameter name from "i" to "jott". Expected: the extracted code uses 'jott' everywhere. Was: private int execute(int jott) { jott= jott * 2; // extract this statement return i; }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/parameterName_in/A_test906.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/parameterName_out/A_test906.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ExtractMethodTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodRefactoring.java