--- jsr166/src/test/loops/MapMicroBenchmark.java 2015/01/15 18:34:19 1.17 +++ jsr166/src/test/loops/MapMicroBenchmark.java 2016/10/23 03:03:23 1.18 @@ -233,9 +233,9 @@ public class MapMicroBenchmark { } public long work(int len, int minIters, int maxIters, long timeLimit) { - Map m; + final Map m; try { - m = (Map) mapClass.newInstance(); + m = (Map) mapClass.getConstructor().newInstance(); } catch (Exception e) { throw new RuntimeException("Can't instantiate " + mapClass + ": " + e); }