hg: jdk8u/jdk8u-dev/jdk: 8039915: Wrong NumberFormat.format() HALF_UP rounding when last digit exactly at rounding position greater than 5

brian.burkhalter at oracle.com brian.burkhalter at oracle.com
Fri Oct 17 18:50:19 UTC 2014


Changeset: 147843e7006a
Author:    bpb
Date:      2014-10-17 11:45 -0700
URL:       http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/147843e7006a

8039915: Wrong NumberFormat.format() HALF_UP rounding when last digit exactly at rounding position greater than 5
Summary: Fixes erroneous rounding in DigitList for corner cases uncovered previously. Adds dedicated unit tests to TieRoundingTest
Reviewed-by: bpb, darcy
Contributed-by: Olivier Lagneau <olivier.lagneau at oracle.com>

! src/share/classes/java/text/DigitList.java
! test/java/text/Format/DecimalFormat/TieRoundingTest.java



More information about the jdk8u-dev-changes mailing list