JDK-8261862 : Expand discussion of rationale for BigDecimal equals/compareTo semantics
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.math
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-02-16
  • Updated: 2021-03-11
  • Resolved: 2021-03-03
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 b13Fixed
Related Reports
Relates :  
Description
Unlike most core JDK classes, BigDecimal has a natural order that is *in*consistent with equals. While this is a justifiable design decision, the rationale for this decision could be expanded.

Follow-up to review comments on JDK-8261123.
Comments
Changeset: a1181852 Author: Joe Darcy <darcy@openjdk.org> Date: 2021-03-03 19:29:17 +0000 URL: https://git.openjdk.java.net/jdk/commit/a1181852
03-03-2021