Community
Participate
Working Groups
I'm using eclipse-SDK-I20041201-win32.zip. Enumerations are not suported for switch statements. The following code compiles without errors under JDK 1.5, but produces the following errors under Eclipse. Severity Description Resource In Folder Location 2 a cannot be resolved TestClass.java test/test line 12 2 b cannot be resolved TestClass.java test/test line 15 2 c cannot be resolved TestClass.java test/test line 18 ------------- test/TestClass ------------------ package test; public class TestClass { State state = State.a; public enum State { a, b, c; } public static void main() { TestClass o = new TestClass(); switch(o.state) { case a: System.out.println("A"); break; case b: System.out.println("B"); break; case c: System.out.println("C"); break; } } }
*** This bug has been marked as a duplicate of 77430 ***