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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: