RFR: 8279986: methods Math::asXExact for safely checked primitive casts

Raffaello Giulietti duke at openjdk.java.net
Thu May 5 15:18:10 UTC 2022


On Thu, 5 May 2022 15:07:32 GMT, Michael Hixson <duke at openjdk.java.net> wrote:

> Rationale: It loses information. It truncates the sign, so the value can't be round-tripped. I think it would be the only lossy transformation permitted by the to*Exact methods?

Right.

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

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


More information about the core-libs-dev mailing list