--- 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;