Summary: | 3.1:tct 125- Clarification for translation | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Cam-Thu Le <camle> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | phuff |
Version: | 3.1 | ||
Target Milestone: | 3.1 RC1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Cam-Thu Le
2005-05-18 00:23:57 EDT
In JLS3, switch can be performed on enum values (as opposed to just int values up until). e.g. enum Color { BLUE, WHITE, RED } ... void foo(Color c) { switch(c) { case BLUE : ... case WHITE : ... } } So when a switch perform on an enum, we say "enum switch". This particular error message arises when some user code tries to mix int constants and enum constants in switch case label (where value is of enum type). Ok to close? fixed fixed Verified on build I20050527-0010. |