hg: jdk8/tl/jdk: 6378503: In java.math.BigDecimal, division by one returns zero; ...
alan.bateman at oracle.com
alan.bateman at oracle.com
Sat Aug 24 20:11:53 UTC 2013
Changeset: 216a4b93cee8
Author: bpb
Date: 2013-08-23 14:15 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/216a4b93cee8
6378503: In java.math.BigDecimal, division by one returns zero
6446965: Using BigDecimal.divideToIntegralValue with extreme scales can lead to an incorrect result
Summary: Fix overflow of ints and ensure appropriate values passed to checkScaleNonZero()
Reviewed-by: darcy, martin
Contributed-by: Brian Burkhalter <brian.burkhalter at oracle.com>
! src/share/classes/java/math/BigDecimal.java
! src/share/classes/java/math/BigInteger.java
! test/java/math/BigDecimal/IntegralDivisionTests.java
More information about the security-dev
mailing list