Project: JDT
Bug 379086 [quick fix] Quick fix to add the missing cases of a switch on enum is not being proposed
Reported: 2012-05-10 04:43:58 | Status: verified fixed

### package p1; public class UseEnum { public void foo(DeclEnum e) { switch(bar()) { case C1: break; } } public DeclEnum bar() { return null; } } enum DeclEnum { C1, C2, C3; } ### With the above example, notice the warning on switch(bar()). Quick fix to add the missing cases is not being proposed. It is proposed if 'switch(e)' is used.

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java