Skip to content

Commit

Permalink
Fix missing localization info issue for timezones
Browse files Browse the repository at this point in the history
With JDK-8236548 in OpenJDK 11 an issue running
a generated native image may arise on programs using
TimeZone.getDisplayName(). With JDK-8236548 this might
become more noticeable since it now occurs on the
English locale too (no caching of English locales
happens any more).

Since all time zone data is included by default now,
also include the TimeZoneNames resource bundle by
default.

Closes: #106
  • Loading branch information
jerboaa authored and zakkak committed Sep 3, 2020
1 parent cd27ad0 commit 13c86d9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ protected void addResourceBundles() {
/* Note that JDK 11 support overrides this method to register more bundles. */

final String[] alwaysRegisteredResourceBundles = new String[]{
"sun.util.logging.resources.logging"
"sun.util.logging.resources.logging",
"sun.util.resources.TimeZoneNames"
};
for (String bundleName : alwaysRegisteredResourceBundles) {
addBundleToCache(bundleName);
Expand Down

0 comments on commit 13c86d9

Please sign in to comment.