Hashtable.hashCode returns zero

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: