RFR: 8378414: Add methods to test for representation equivalence

Joe Darcy darcy at openjdk.org
Mon Feb 23 00:56:33 UTC 2026


Floating-point values have a notion of representation equivalence distinct from the comparison done by ==. This notion of equivalence could have a method to provide the predicate directly, rather than relying on one of several expressions listed in the documentation ([JDK-8295391](https://bugs.openjdk.org/browse/JDK-8295391)).

-------------

Commit messages:
 - 8378414: Add methods to test for representation equivalence

Changes: https://git.openjdk.org/jdk/pull/29870/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29870&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8378414
  Stats: 89 lines in 5 files changed: 66 ins; 0 del; 23 mod
  Patch: https://git.openjdk.org/jdk/pull/29870.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29870/head:pull/29870

PR: https://git.openjdk.org/jdk/pull/29870


More information about the core-libs-dev mailing list