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

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

JDK 8 Reviewers:

This review request concerns the issue

for which the proposed webrev is

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]).




More information about the core-libs-dev mailing list