Project: JDT
Bug 218108 [extract constant] Original literal not replaced when constant extracted within overriden enum.
Reported: 2008-02-06 18:59:44 | Status: verified fixed

Build ID: M20071023-1652 Steps To Reproduce: Please extract constant from string literal on LINE 4. The original literal should be replaced by a mention of the constant. But wrongly it isn't. -------------------------Bug.java---------------- enum Bug {Z{ @Override String method() { return"bug";//LINE 4 }}; abstract String method(); }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractConstant/canExtract/A_test35_in.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractConstant/canExtract/A_test35_out.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ExtractConstantTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java