Summary: | [compiler][1.5] detect not-exhaustive enum switches | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M6 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Adam Kiezun
2004-06-28 17:22:00 EDT
# Added optional compiler diagnosis to flag incomplete enum switch statements. Corresponding problem ID is: IProblem.MissingEnumConstantCase * COMPILER / Reporting Incomplete Enum Switch * When enabled, the compiler will issue an error or a warning whenever an enum constant has * no corresponding case label in an enum switch statement * type has no case label matching an enum constant. * - option id: "org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch" * - possible values: { "error", "warning", "ignore" } * - default: "ignore" Fixed Verified in 20050330-0500 |