Project: JDT
Bug 81178 [refactoring] disable extract method on case constants
Reported: 2004-12-15 10:48:09 | Status: verified fixed

20041215 It's currently possible to extract an method from a case expression which result in something like: private void foo(int e) { switch (e) { case foo(): break; } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/invalidSelection/A_test195.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/ExtractMethodAnalyzer.java