Code review request for 6560935: BigInteger.modPow() throws ArithmeticException for negative exponent (original) (raw)

Alan Bateman Alan.Bateman at Sun.COM
Wed Oct 21 13:01:04 UTC 2009


Joseph D. Darcy wrote:

Hello.

Please review this small doc clarification; modPow is not defined for negative exponents unless the BigInteger being operated on is relatively prime to the modulus. There are a few stylistic javadoc cleanups in the patch below too. Webrev: http://cr.openjdk.java.net/~darcy/6560935.0/ Thanks, -Joe This looks right (and the stylistic changes are okay too).

-Alan.



More information about the core-libs-dev mailing list