Community
Participate
Working Groups
I'm using eclipse-SDK-3.1M4-win32.zip. Inner enums in geneneric classes are not support in the switch statement: The sample below causes two duplicate case errors: public class A<T> { public enum X { a,b } void foo() { for (X x : X.values()) { switch(x) { case a: case b: System.out.println(x.name()); } } } } If "<T>" is removed, the sample starts to compile. Workaround is to use if statements instead of switch. However it looks more ugly.
*** This bug has been marked as a duplicate of 81945 ***