Java 8 RFR 8022094: BigDecimal/CompareToTests and BigInteger/CompareToTests are incorrect

Brian Burkhalter brian.burkhalter at oracle.com
Thu Aug 1 19:09:05 UTC 2013


Reviewers:

This is a test-only issue.

Issue	http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8022094 (not public quite yet)
Webrev	http://cr.openjdk.java.net/~bpb/8022094/

Summary:

1) BigDecimal
* The compareToTest() method was modified to correctly print and report errors.
* The set of test cases was changed to eliminate incorrect assumptions.
2) BigInteger
* Old version replaced by copying BigDecimal version and changing BigDecimal to BigInteger.
* Fractional test cases were replace with others to probe internal mag array having different relative lengths.

Thanks,

Brian


More information about the core-libs-dev mailing list