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

Hashtable.hashCode returns zero

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • core-libs
    • None

      When fixing bug 4506459, a serious regression was introduced. All Hashtable instances now have a hashCode of zero. This will cause quadratic performance for a sequence of n operations on a hash-based collection using Hashtable instances as keys. If multiple Map implementations including Hashtable are used as keys in a single collection, the collection will operate erratically.

            jjb Josh Bloch (Inactive)
            jjb Josh Bloch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: