RFR: JDK-8257086: Clarify differences between {Float, Double}.equals and == [v2]

Joe Darcy darcy at openjdk.java.net
Wed Jan 13 20:00:26 UTC 2021

> Updates to the specifications of Double.{equals, compareTo} to explain more explicitly why the obvious wrappers around "==" and "<"/"==" are not sufficient for floating-point values.
> Once the wording is worked out, I'll replicate it for the analogous methods on Float.

Joe Darcy has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'master' into JDK-8257086
 - Fix whitespace
 - Initial work for JDK-8257086.


  - all: https://git.openjdk.java.net/jdk/pull/1699/files
  - new: https://git.openjdk.java.net/jdk/pull/1699/files/15ce6ad8..308b387d

 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1699&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1699&range=00-01

  Stats: 77436 lines in 2286 files changed: 42945 ins; 17938 del; 16553 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1699.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1699/head:pull/1699

PR: https://git.openjdk.java.net/jdk/pull/1699

More information about the core-libs-dev mailing list