< prev index next >

test/java/util/ResourceBundle/ReferencesTest.java

Print this page

        

@@ -103,19 +103,13 @@
 
     private static void report(String when) throws Exception {
         int first = countLoaders(0, CLASS_LOADER_COUNT / 2);
         int second = countLoaders(CLASS_LOADER_COUNT / 2, CLASS_LOADER_COUNT);
 
-        Class clazz = ResourceBundle.class;
-        Field cacheList = clazz.getDeclaredField("cacheList");
-        cacheList.setAccessible(true);
-        int cacheSize = ((Map)cacheList.get(clazz)).size();
-
         System.out.println(when);
         System.out.println("    " + first + " loaders alive in first half");
         System.out.println("    " + second + " loaders alive in second half");
-        System.out.println("    " + cacheSize + " entries in resource bundle cache");
     }
 
     private static void loadBundles(int start, int end) throws Exception {
         for (int i = start; i < end; i++) {
             // There's no resource bundle for NonExistantBundle - this
< prev index next >