Java 8 RFR 6378503: In java.math.BigDecimal, division by one returns zero

Brian Burkhalter brian.burkhalter at oracle.com
Thu Jul 25 00:21:39 UTC 2013


JDK 8 Reviewers:

This review request concerns the issue

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6378503

for which the proposed webrev is

http://cr.openjdk.java.net/~bpb/6378503/

The fix consists in preventing overflowing the int type in certain places. The added test case is equivalent to the one described in the issue report insofar as I can tell but is much less computationally expensive.

Note that this patch follows that for 8020641 (approved [1]) which follows that for 8014319 (pending [2]).

Thanks,

Brian

[1] http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-July/019017.html
[2] http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-July/018922.html


More information about the core-libs-dev mailing list