hg: jdk/jdk: 8196399: Formatting a decimal using locale-specific grouping separators causes ArithmeticException (division by zero).; ...

nishit.jain at oracle.com nishit.jain at oracle.com
Thu Mar 22 07:30:34 UTC 2018


Changeset: cf9e3c8607b7
Author:    nishjain
Date:      2018-03-22 12:59 +0530
URL:       http://hg.openjdk.java.net/jdk/jdk/rev/cf9e3c8607b7

8196399: Formatting a decimal using locale-specific grouping separators causes ArithmeticException (division by zero).
8199672: ClassCastException is thrown by java.util.Formatter when an NumberFormatProvider SPI is used.
Reviewed-by: naoto

! src/java.base/share/classes/java/util/Formatter.java
+ test/jdk/java/util/Formatter/NoGroupingUsed.java
+ test/jdk/java/util/Formatter/spi/FormatterWithProvider.java
+ test/jdk/java/util/Formatter/spi/provider/module-info.java
+ test/jdk/java/util/Formatter/spi/provider/test/NumberFormatProviderImpl.java



More information about the jdk-changes mailing list