RFR: 8378414: Add methods to test for representation equivalence
Raffaello Giulietti
rgiulietti at openjdk.org
Mon Feb 23 14:34:07 UTC 2026
On Mon, 23 Feb 2026 02:45:51 GMT, Joe Darcy <darcy at openjdk.org> wrote:
>> This equivalence is already covered by their `equals(Object)` methods. I would assume they are declared as `equals(double, double)` etc. similar to how instance `Double::isInfinite()` and static `Double::isInfinite(double)` are declared.
>
>> This equivalence is already covered by their `equals(Object)` methods. I would assume they are declared as `equals(double, double)` etc. similar to how instance `Double::isInfinite()` and static `Double::isInfinite(double)` are declared.
>
> It is true that there are already multiple expressions using existing methods can be written to implement that functionality. However, conceptually, I don't think boxing up to Double should be necessary (or desirable).
@jddarcy The `java/lang/Math` tests fail (but disregard my previous message).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29870#issuecomment-3945104630
More information about the core-libs-dev
mailing list