Community
Participate
Working Groups
3.0 switches on enums should be exhaustive - if they're not, we should show a warning
# 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