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

Print this page

        

@@ -875,11 +875,11 @@
         public String getDisplayName(Locale locale) {
             Objects.requireNonNull(locale, "locale");
             if (rangeUnit == YEARS) {  // only have values for week-of-year
                 LocaleResources lr = LocaleProviderAdapter.getResourceBundleBased()
                         .getLocaleResources(locale);
-                ResourceBundle rb = lr.getFormatData();
+                ResourceBundle rb = lr.getJavaTimeFormatData();
                 return rb.containsKey("field.week") ? rb.getString("field.week") : getName();
             }
             return getName();
         }