Project: JDT
Bug 199063 [Extract Class] Update fails in switch blocks
Reported: 2007-08-07 08:27:40 | Status: verified fixed

package p; public class SwtichCaseUpdates { private int test; private void foo() { switch (test) { case 5: test=7; break; case 7: test=5; } } } Use Extract Class on all fields using getters&setters. The test=7 is said to be not updateable which is not the case.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractClass/testSwitchCaseUpdates/in/SwitchCaseUpdates.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractClass/testSwitchCaseUpdates/out/SwitchCaseUpdates.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractClass/testSwitchCaseUpdates/out/SwitchCaseUpdatesParameter.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ExtractClassTests.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GetterSetterUtil.java