Integrated: JDK-8257086: Clarify differences between {Float, Double}.equals and ==

Joe Darcy darcy at openjdk.java.net
Tue Feb 2 02:36:41 UTC 2021


On Tue, 8 Dec 2020 16:29:49 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.

This pull request has now been integrated.

Changeset: 474dba2d
Author:    Joe Darcy <darcy at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/474dba2d
Stats:     205 lines in 2 files changed: 124 ins; 31 del; 50 mod

8257086: Clarify differences between {Float, Double}.equals and ==

Reviewed-by: smarks, bpb

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

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


More information about the core-libs-dev mailing list