The enum spec requires a compiler to generate final classes for the enum
unless some enumeration constant is specialized. javac doesn't generate
a final class unless the user declared it final.
unless some enumeration constant is specialized. javac doesn't generate
a final class unless the user declared it final.
- duplicates
-
JDK-4965175 JDI: ReferenceType.isFinal() returned false for enum types
- Closed
-
JDK-5009577 Compiler should set ACC_FINAL for enum types with no constant-specific members
- Closed
- relates to
-
JDK-5009601 Bring enum implementation up to date with its spec
- Resolved