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

Augment discussion of equivalence classes in Object.equals and comparison methods

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b11

      Description

      The behavior of equals methods and comparators could be clarified by more explicitly discussing the equivalence classes those methods define. Such discussions would be especially helpful for classes like BigDecimal where the natural ordering is *inconsistent* with equals.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: