Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4867213

Wrong equals() method signature in java.awt.DisplayMode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • None
    • 2d
    • generic
    • generic

      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.

            chaasesunw Chet Haase (Inactive)
            jdn Jeffrey Nisewanger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: