src/share/classes/java/time/temporal/IsoFields.java

Print this page

        

@@ -351,11 +351,11 @@
             @Override
             public String getDisplayName(Locale locale) {
                 Objects.requireNonNull(locale, "locale");
                 LocaleResources lr = LocaleProviderAdapter.getResourceBundleBased()
                                             .getLocaleResources(locale);
-                ResourceBundle rb = lr.getFormatData();
+                ResourceBundle rb = lr.getJavaTimeFormatData();
                 return rb.containsKey("field.week") ? rb.getString("field.week") : getName();
             }
 
             @Override
             public TemporalUnit getBaseUnit() {