jdk/test/java/util/concurrent/tck/TreeSetTest.java
changeset 41131 87edc8451f8a
parent 35394 282c3cb6a0c1
child 42322 c3474fef4fe4
--- a/jdk/test/java/util/concurrent/tck/TreeSetTest.java	Fri Sep 23 13:21:23 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/TreeSetTest.java	Fri Sep 23 13:24:33 2016 -0700
@@ -722,7 +722,8 @@
     }
 
     static NavigableSet<Integer> newSet(Class cl) throws Exception {
-        NavigableSet<Integer> result = (NavigableSet<Integer>) cl.newInstance();
+        NavigableSet<Integer> result =
+            (NavigableSet<Integer>) cl.getConstructor().newInstance();
         assertEquals(0, result.size());
         assertFalse(result.iterator().hasNext());
         return result;