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

UniqueType cannot be safely used with HashMaps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 9
    • 9
    • tools
    • None

      In order to work properly in HashMap/HashSet, UniqueType must have the property:

        forall t1, t2. equals(t1,t2) => hashCode(t1) == hashCode(t2) .

      This property doesn't hold.

            pgovereau Paul Govereau (Inactive)
            pgovereau Paul Govereau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: