Two package private classes violate Object.hashCode contract

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.3.0
    • Affects Version/s: 1.2.0, 1.3.0
    • Component/s: core-libs
    • None
    • kestrel
    • generic
    • generic, solaris_2.6

          The PatternEntry and IntHashtable classes override Object.equals but
      not Object.hashCode. This violates the restriction that:

      a.equals(b) ==> a.hashCode()==b.hashCode()

      As these classes are package-private, there is no immediate danger to external
      users, but until the situation is corrected, it's waiting to bite us.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: