JDK-4867213 : Wrong equals() method signature in java.awt.DisplayMode
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2003-05-21
  • Updated: 2003-05-23
  • Resolved: 2003-05-23
Related Reports
Duplicate :  
Description
The DisplayMode class defines an equals(DisplayMode) method
instead of equals(Object) to pair with the hashCode() method
which it also defines. This causes any use of the equals/hashCode
constract (Hashtable etc.) to use the equals(Object) inherited
from java.lang.Object which implements instance identity
equality rather than the apparently intended content equality.

Comments
PUBLIC COMMENTS DisplayMode contains in incorrectly declared equals() method signature.
10-06-2004

EVALUATION java.awt.DisplayMode now belongs to 2D. ###@###.### 2003-05-22
22-05-2003