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

Object.equals documentation slighlty confusing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-libs
    • beta
    • generic
    • generic
    • Verified

         Object.equals(Object) contains an @see tag for Boolean.hashCode where it should reference Object.hashCode. While we're at it, we should add a note saying that it is almost always necessary to override hashCode when overriding equals, in order to preserve general contract of Object.hashCode.

            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: