hg: jdk8/tl/jdk: 6469160: (fmt) general (%g) formatting of zero (0.0) with precision 0 or 1 throws ArrayOutOfBoundsException

dan.xu at oracle.com dan.xu at oracle.com
Mon Jun 24 20:55:36 PDT 2013


Changeset: eabcb85fcabc
Author:    bpb
Date:      2013-06-24 14:17 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/eabcb85fcabc

6469160: (fmt) general (%g) formatting of zero (0.0) with precision 0 or 1 throws ArrayOutOfBoundsException
Summary: For zero value ensure than an unpadded zero character is passed to Formatter.addZeros()
Reviewed-by: iris, darcy
Contributed-by: Brian Burkhalter <brian.burkhalter at oracle.com>

! src/share/classes/java/util/Formatter.java
! src/share/classes/sun/misc/FloatingDecimal.java
! test/java/util/Formatter/Basic-X.java.template
! test/java/util/Formatter/Basic.java
! test/java/util/Formatter/BasicBigDecimal.java
! test/java/util/Formatter/BasicDouble.java
! test/java/util/Formatter/BasicDoubleObject.java
! test/java/util/Formatter/BasicFloat.java
! test/java/util/Formatter/BasicFloatObject.java



More information about the security-dev mailing list