Can not compile enums in Eclipse

Open the properties for the project, select the page “Java Compiler” and set the “Compiler Compliance level” to “1.5” or better.

Project properties page for the Java Compiler

Leave a Comment