1
votes

How can i enable "abstract enum [SomeClassName]" in eclipse with jdk7 ?

With Indigo Service Release 2 and jdk7, it will report error in the code when I write "abstract enum [SomeClassName] ".

Is there something I need to do in order to get this working ?

i need that feature very much, which reduce my labor dramatically.

1
no,no,no ,i believe it is ---- abstract enum [SomeClassName] - Johnny
not ---- abstract Enum , its legal, and i know that. - Johnny
no way to edit my original post. - Johnny
Where did you read that Java 7 supports "abstract" (or "extended") enums? They were considered, but not adopted in the end, so Java does not support them. - Philipp Wendler

1 Answers

1
votes

Yup, I agree with Philipp. Java 7 does not seem to support abstract enum. This is not a problem in eclipse.

The code that you think is problematic, can you get it to compile from command line using JDK 7 ?

I tried both OpenJDK-7 and the Oracle JDK7. I could not get a simple class to compile with an abstract enum in it.