JDK 15 RF(pre)R of JDK-8241374: add Math.absExact

Chris Hegarty chris.hegarty at oracle.com
Mon Mar 30 13:31:37 UTC 2020


> On 29 Mar 2020, at 20:03, Joe Darcy <joe.darcy at oracle.com> wrote:
> Hi Stuart,
> Full webrev for review include including tests:
>     http://cr.openjdk.java.net/~darcy/8241374.0/
> and the companion CSR:
>     https://bugs.openjdk.java.net/browse/JDK-8241805

Looks good to me.

I do like the explanatory paragraph about the asymmetry in the range of two's complement integer values. An alternative, or addition, would be a link to JLS 4.2.1 - Integral Types and Values [1], which shows the asymmetry from a language perspective.


[1] https://docs.oracle.com/javase/specs/jls/se14/html/jls-4.html#jls-4.2.1

More information about the core-libs-dev mailing list