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

Two package private classes violate Object.hashCode contract

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.0
    • 1.2.0, 1.3.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: