--- jsr166/src/test/loops/MapLoops.java 2015/09/12 19:36:34 1.12 +++ jsr166/src/test/loops/MapLoops.java 2016/10/23 03:03:23 1.13 @@ -104,7 +104,8 @@ public class MapLoops { static void test(int i, int nkeys, Class mapClass) throws Exception { System.out.print("Threads: " + i + "\t:"); - Map map = (Map)mapClass.newInstance(); + Map map = + (Map) mapClass.getConstructor().newInstance(); Integer[] key = makeKeys(nkeys); // Uncomment to start with a non-empty table // for (int j = 0; j < nkeys; j += 4) // start 1/4 occupied