RFR: 8075806: divideExact is missing in java.lang.Math [v5]

Joe Darcy darcy at openjdk.java.net
Thu Jul 22 20:39:08 UTC 2021


On Thu, 22 Jul 2021 19:40:46 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Please consider this proposal to add `divideExact()` methods for integral data types to `java.lang.Math` thereby rounding out "exact" support to all four basic arithmetic operations.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8075806: Clean up division by zero verbiage

Marked as reviewed by darcy (Reviewer).

test/jdk/java/lang/Math/ExactArithTests.java line 135:

> 133:         }
> 134: 
> 135:         boolean exceptionExpected = false;

Please add "divideExact" to the list of methods tested by 
static void testIntegerExact(int x, int y) 
and similar change for long.

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

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


More information about the core-libs-dev mailing list