<i18n dev>  RFR: 8013086 : NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
y.umaoka at gmail.com
Fri Apr 26 08:57:51 PDT 2013
On 4/25/2013 5:21 PM, Naoto Sato wrote:
> Please review the fix for the following bug:
> The fix is to complement the missing display names with the provided
> ones for TimeZoneNameProvider implementations.
First of all, thanks for looking into this bug. I believe I filed the
bug a while ago.
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).
More information about the i18n-dev