[10]RFR 8190278: ClassCastException is thrown by java.util.Scanner when a NumberFormatProvider is used. (original) (raw)
Nishit Jain nishit.jain at oracle.com
Mon Dec 11 09:04:32 UTC 2017
- Previous message: RFR: JDK-8184947:,ZipCoder performance improvements
- Next message: [10]RFR 8190278: ClassCastException is thrown by java.util.Scanner when a NumberFormatProvider is used.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
Please review the fix for JDK-8190278
Bug: https://bugs.openjdk.java.net/browse/JDK-8190278 Webrev: http://cr.openjdk.java.net/~nishjain/8190278/webrev.03/
Fix: Modified the code to check whether the object returned by NumberFormat#getNumberInstance(Locale) is a DecimalFormat object, if not, then use the DecimalFormat constructor way to create its object, where SPI provider implementation is ignored.
Regards, Nishit Jain
- Previous message: RFR: JDK-8184947:,ZipCoder performance improvements
- Next message: [10]RFR 8190278: ClassCastException is thrown by java.util.Scanner when a NumberFormatProvider is used.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]