Community
Participate
Working Groups
Using Eclipse 3.1M3 (Build id: 200411050810) enum case statments do not compile. For example the method below results in compile errors "RED cannot be resolved" and "BLUE cannot be resolved". This code compiles fine using javac 1.5.0. public int getPlayerId(PlayerColor playerColor) { switch(playerColor) { case RED: return 1; case BLUE: return 2; default: return 0; } }
Created attachment 15797 [details] PlayerColorTest
Created attachment 15798 [details] PlayerColor enum class
*** This bug has been marked as a duplicate of 77430 ***