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

JDK code doesn't respect contract for equals and hashCode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.4.2
    • Fix Version/s: 5.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_2.6

      Description

      The following problem was originally reported in 4634068.

      There are a number of classes that do not respect the
      implied contract for equals and hashCode. See, for example,
      Joshua Bloch's book "Effective Java", items 7-8.

      java.beans.IndexedPropertyDescriptor redefines
        equals(Object) but not
        hashCode()
      java.beans.PropertyDescriptor redefines
        equals(Object) but not
        hashCode()

      Problems found by applying automatic tools to JDK
      libraries. However, manual inspectation of the classes
      reveals the same problems.

      -- iag@sfbay 2002-02-06

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mdavidsosunw Mark Davidson (Inactive)
              Reporter:
              iris Iris Clark
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: