--- jsr166/src/test/loops/CollectionLoops.java 2015/01/15 18:34:18 1.10 +++ jsr166/src/test/loops/CollectionLoops.java 2016/10/23 03:03:23 1.11 @@ -105,7 +105,8 @@ public class CollectionLoops { static void test(int i, int nk, int nops, Class collectionClass) throws Exception { if (print) System.out.print("Threads: " + i + "\t:"); - Collection collection = (Collection)collectionClass.newInstance(); + Collection collection = + (Collection) collectionClass.getConstructor().newInstance(); Integer[] key = makeKeys(nk); // Uncomment to start with a non-empty table for (int j = 0; j < nk; j += 2)