JDK-8261123 : Augment discussion of equivalence classes in Object.equals and comparison methods
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-02-04
  • Updated: 2022-04-25
  • Resolved: 2021-02-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b11Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
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.
Comments
Changeset: d547e1a8 Author: Joe Darcy <darcy@openjdk.org> Date: 2021-02-17 01:08:39 +0000 URL: https://git.openjdk.java.net/jdk/commit/d547e1a8
17-02-2021