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

Stuart Marks smarks at openjdk.java.net
Tue Feb 2 01:11:42 UTC 2021


On Sat, 30 Jan 2021 01:58:02 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> 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 incrementally with one additional commit since the last revision:
> 
>   Fix typos noticed by @bplb.

I did another full reread. Everything looks good!

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

Marked as reviewed by smarks (Reviewer).

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


More information about the core-libs-dev mailing list