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

Print this page

        

*** 546,556 **** return getName(); } LocaleResources lr = LocaleProviderAdapter.getResourceBundleBased() .getLocaleResources(locale); ! ResourceBundle rb = lr.getFormatData(); String key = "field." + displayNameKey; return rb.containsKey(key) ? rb.getString(key) : getName(); } @Override --- 546,556 ---- return getName(); } LocaleResources lr = LocaleProviderAdapter.getResourceBundleBased() .getLocaleResources(locale); ! ResourceBundle rb = lr.getJavaTimeFormatData(); String key = "field." + displayNameKey; return rb.containsKey(key) ? rb.getString(key) : getName(); } @Override