test/java/time/test/java/time/temporal/TestChronoField.java

Print this page

        

@@ -131,11 +131,11 @@
             String displayname = field.getDisplayName(locale);
 
             // Verify the name returned is the same as the direct mapping to the locale resource.
             LocaleResources lr = LocaleProviderAdapter.getResourceBundleBased()
                                         .getLocaleResources(locale);
-            ResourceBundle rb = lr.getFormatData();
+            ResourceBundle rb = lr.getJavaTimeFormatData();
             String displayNameKey = fieldMap.get(field);
             if (displayNameKey != null) {
                 String key = "field." + displayNameKey;
                 String expected = rb.containsKey(key) ? rb.getString(key) : field.getName();
                 assertEquals(displayname, expected);