Community
Participate
Working Groups
Build 20050331 Following code causes internal compiler failure: package enums; public class E { enum Numbers { ONE, TWO, THREE } static final String BLANK = " "; void foo(Colors color) { switch (color) { case BLUE: case RED: break; } } } /** * Enumeration of some basic colors. */ enum Colors { BLACK, // BLUE, WHITE, RED }
Added EnumTest#test097-098. Support wasn't handling scenario where some case labels could not be resolved.
Fixed
I forgot to precise that to get this internal error you need to set compiler option "Not all enum constants covered on 'switch'" to warning or error...
Verified in I20050401-1205