Java: JDK8, JDK8 update or JDK 9
OS: windows 7, mac os x 10.9, OEL5
Compile and run attached program, JavaTimeTest.java.
In most cases, when FormatStyle of DateTimeFormatter is LONG or FULL, exception is thrown. Attached are the screen shots.
On windows 7 zh_CN, if java.locale.providers is JRE, there will be output even FormatStyle is LONG or FULL, and no exception is thrown. But when I try in windows 7 en and ja, there is still the exception.
Attached are the screen shots.
---------------------------------------------------------------------------------------------------------------------
2015-05-04
When java.locale.providers is JRE, the default provider, in some locales, the format method works fine. For example, in locales zh_CN, zh_TW, ko_KR, th_TH, there is no exception thrown.
In most of the locales, there will be exception.
When java.locale.providers is CLDR or HOST, then in all the locales, there will be exception.
This happens in classes with 'time" like LocalDatetime, ZonedDateTime, etc. in java.time package.
OS: windows 7, mac os x 10.9, OEL5
Compile and run attached program, JavaTimeTest.java.
In most cases, when FormatStyle of DateTimeFormatter is LONG or FULL, exception is thrown. Attached are the screen shots.
On windows 7 zh_CN, if java.locale.providers is JRE, there will be output even FormatStyle is LONG or FULL, and no exception is thrown. But when I try in windows 7 en and ja, there is still the exception.
Attached are the screen shots.
---------------------------------------------------------------------------------------------------------------------
2015-05-04
When java.locale.providers is JRE, the default provider, in some locales, the format method works fine. For example, in locales zh_CN, zh_TW, ko_KR, th_TH, there is no exception thrown.
In most of the locales, there will be exception.
When java.locale.providers is CLDR or HOST, then in all the locales, there will be exception.
This happens in classes with 'time" like LocalDatetime, ZonedDateTime, etc. in java.time package.
- relates to
-
JDK-8085887 java.time.format.FormatStyle.LONG or FULL causes unchecked exception
- Closed