JDK-5019572 : Enum.compareTo() not final
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2004-03-24
  • Updated: 2004-04-01
  • Resolved: 2004-04-01
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.
Other
5.0 b46Fixed
Description
The enum spec requires

    java.lang.Enum.compareTo(E)

to be a final method, but it is not currently implemented as final.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-b46 tiger-beta2
14-06-2004

PUBLIC COMMENTS ...
10-06-2004

SUGGESTED FIX src/share/classes/java/lang>sccs sccsdiff -r1.9 -r1.10 Enum.java ------- Enum.java ------- 107c107 < final public boolean equals(Object other) { --- > public final boolean equals(Object other) { 116c116 < final public int hashCode() { --- > public final int hashCode() { 127c127 < final protected Object clone() throws CloneNotSupportedException { --- > protected final Object clone() throws CloneNotSupportedException { 140c140 < public int compareTo(E o) { --- > public final int compareTo(E o) { ###@###.### 2004-03-29
29-03-2004

EVALUATION Agreed. ###@###.### 2004-03-24
24-03-2004