JDK 5.0 Enum support

Am i missing something, or is there no support for JDK 5.0 enums?

public enum X { Y,Z; }

It doesn't seem to work by default at either the top level of a .java file, or as an inner class.

Is there some setting I have to enable so that the parser recognizes these as valid classes?

It's annoying to be constantly seeing all the error markers in the editor window for syntactically correct
java code.

0
Avatar
Permanently deleted user

Projet settings / Path / Language level for project

BoD


Matthew Inger wrote:

Am i missing something, or is there no support for JDK 5.0 enums?

public enum X { Y,Z; }

It doesn't seem to work by default at either the top level of a .java file, or as an inner class.

Is there some setting I have to enable so that the parser recognizes these as valid classes?

It's annoying to be constantly seeing all the error markers in the editor window for syntactically correct
java code.

0

请先登录再写评论。