Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 106679

Summary: [extract constant] Case expression not replaced with extracted constant.
Product: [Eclipse Project] JDT Reporter: Brian Miller <bmiller>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: CLOSED DUPLICATE QA Contact:
Severity: trivial    
Priority: P3 CC: deepakazad
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Brian Miller CLA 2005-08-10 15:27:12 EDT
Hilite 7 and extract constant.  See that the hilited 7 isn't replaced.

---------------------------- Bug.java ----------------
class Bug {
    {
        switch(hashCode()){
            case 7:
        }
    }
}
Comment 1 Deepak Azad CLA 2011-07-19 09:35:14 EDT

*** This bug has been marked as a duplicate of bug 211529 ***