<i18n dev> [8] RFR: 8013086 : NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
Naoto Sato
naoto.sato at oracle.com
Fri Apr 26 09:48:25 PDT 2013
On 4/26/13 8:57 AM, Yoshito Umaoka wrote:
> I'm afraid that the fix above is not what I wanted. Your proposed fix -
> fallback to standard name when daylight name is missing, and long name
> when short name is missing.
>
> I think the right fix would be querying a localized name from another
> provide in the provider chain. I think a typical use case of custom
> locale provider is to replace the stock JDK locale data with user's own
> data. My understanding is that this was not available in Java 7, but
> Java 8 can be configured to use a custom provider first, then fallback
> to others (including the stock JDK locale provider).
I thought about it, but decided not to do that because it would
introduce unwanted complexity (array item based fallback) for sort of
little benefit. If the SPI implementation wants to override the JRE's
display names by declaring to support that locale, it would not be too
much to require the SPI implementation to return all the display names.
Naoto
More information about the i18n-dev
mailing list