JDK 8 RFR 8029514: java/math/BigInteger/BigIntegerTest.java failing since thresholds adjusted in 8022181

Brian Burkhalter brian.burkhalter at oracle.com
Wed Dec 4 21:34:42 UTC 2013


Hello,

Issue:	https://bugs.openjdk.java.net/browse/JDK-8029514
Webrev:	http://cr.openjdk.java.net/~bpb/8029514/webrev/

The problem causing this failure is that the method getLower() used by Karatsuba multiplication is expected to return an unsigned value but instead returns 'this' if the parameter 'n' is not greater than the int-length of the BigInteger on which it is invoked. For multiplications in which there is a negative factor this could result in an incorrect product being obtained.

The BigIntegerTest is also updated to reflect the modified thresholds (should have been in the patch for 8022181 but was not …).

Thanks,

Brian


More information about the core-libs-dev mailing list