8215759: java/math/BigInteger/ModPow.java can throw an ArithmeticException

Roger Riggs Roger.Riggs at oracle.com
Fri Dec 21 14:52:15 UTC 2018

Hi Brian,

The changes look fine.

Adding the bugid to @bug helps close the loop, the test failed, a bug 
was fixed.

Happy Holidays, Roger

On 12/20/2018 07:36 PM, Brian Burkhalter wrote:
> https://bugs.openjdk.java.net/browse/JDK-8215759
> http://cr.openjdk.java.net/~bpb/8215759/webrev.00/
> Although highly unlikely, the modulus parameter of modPow() can be zero which would provoke an ArithmeticException.
> Unsure whether I need this bug ID in the @bug list.
> Thanks,
> Brian

More information about the core-libs-dev mailing list