<i18n dev> RFR: 8248695: HostLocaleProviderAdapterImpl provides invalid date-only

naoto.sato at oracle.com naoto.sato at oracle.com
Tue Jul 7 22:55:32 UTC 2020


Hello,

Please review the fix to the following issue:

https://bugs.openjdk.java.net/browse/JDK-8248695

The proposed changeset is located at:

http://cr.openjdk.java.net/~naoto/8248695/webrev.00/

There were two causes that resulted in throwing exceptions. One was that 
the Host adapter for Windows always produced Date and Time combined 
patterns, so formatting a LocalDate ended up with unsupported temporal 
field for HourOfDay (reported in the bug), and the other cause was the 
pattern for am/pm was "aa", which was not valid as a DateTimeFormatter 
pattern.

Besides these issues, localized DayOfWeek/AM_PM names have not been 
correctly implemented in the host adapter. Now those names are correctly 
returned from Windows.

Naoto


More information about the i18n-dev mailing list