Community
Participate
Working Groups
Using 200412162000 Given the class: ---- public class Test1<X> { enum Option { ALPHA, BRAVO }; void method1(Option item) { switch (item) { case ALPHA: break; case BRAVO: break; } } } ---- It compiles without warning using sun's javac. Eclipse generates an error for the two "case"s in the switch statement with the error "Duplicate case" If Test1 does NOT have generic arguments, then Eclipse does not complain. If the Enumerated type Option is moved to a separate file, Eclipse does not complain.
*** Bug 82319 has been marked as a duplicate of this bug. ***
ParameterizedFieldBinding did not carry proper id. Added EnumTest#test063.
Fixed
Verified in I20050214