JDK-6424358 : Synthesized static enum method values() is final
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-05-10
  • Updated: 2017-05-16
  • Resolved: 2006-06-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b89Fixed
Related Reports
Relates :  
Description
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=141155

$ cat X.java
public enum X {
        A, B, C;
}
$ javac X.java
$ javap X
Compiled from "X.java"
public final class X extends java.lang.Enum{
    public static final X A;
    public static final X B;
    public static final X C;
    public static final X[] values();
    public static X valueOf(java.lang.String);
    static {};
}

The method values() is final which contradicts the JLS.

Comments
EVALUATION A minor bug.
10-05-2006