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

Brian Burkhalter bpb at openjdk.java.net
Wed Jul 14 19:59:52 UTC 2021


On Wed, 14 Jul 2021 16:43:32 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8075806: Separate div-by-0 verbiage; change impl
>
> src/java.base/share/classes/java/lang/Math.java line 1008:
> 
>> 1006:      * Returns the quotient of the arguments, throwing an exception if the
>> 1007:      * result overflows an {@code int}.  Such overflow can occur if and only
>> 1008:      * if either {@code y} is zero, or both {@code x} is
> 
> I think the divide by zero case should be discussed separately from overflow.

Fixed.

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

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


More information about the core-libs-dev mailing list