RFR: 8378414: Add methods to test for representation equivalence

Joe Darcy darcy at openjdk.org
Mon Feb 23 02:48:06 UTC 2026


On Mon, 23 Feb 2026 01:59:52 GMT, Chen Liang <liach 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.

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).

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

PR Comment: https://git.openjdk.org/jdk/pull/29870#issuecomment-3942229402


More information about the core-libs-dev mailing list