Summary: | [1.5][compiler] Uninformative error message for qualified enum constants in switch statement | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Max Gilead <max.gilead> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | Olivier_Thomann, philippe_mulet |
Version: | 3.3 | ||
Target Milestone: | 3.5 M4 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Max Gilead
2006-08-16 17:10:47 EDT
How about? "The qualified case label X.Y.Z must be replaced with the simple enum constant name Z" 'The reference to enum constant CONST1 should not be qualified in a case label' ? Maybe "The qualified case label X.Y.Z must be replaced with the unqualified enum constant name Z"? I'm going to use : "The qualified case label X.Y.Z must be replaced with the unqualified enum constant Z" since its similar to these other enum messages : 759 = The field {0}.{1} cannot be referenced from an enum case label; only enum constants can be used in enum switch 761 = The enum constant {0}.{1} has no corresponding case label And I'm going to remove the qualification from the last optional message : 761 = The enum constant {0} needs a corresponding case label in this enum switch Changed these 2 enum messages : 755 = The qualified case label {0}.{1} must be replaced with the unqualified enum constant {1} 761 = The enum constant {1} needs a corresponding case label in this enum switch on {0} Fix released for 3.5M4 Verified for 3.5M4 using I20081208-1800. I would however expect the whole qualified constant to be underlined. |