< prev index next >

test/jdk/java/util/concurrent/tck/Collection8Test.java

Print this page
rev 48215 : 8060192: Add default method <A> A[] Collection.toArray(IntFunction<A[]> generator)
Reviewed-by: martin, forax, psandoz

@@ -187,11 +187,11 @@
             () -> c.removeIf(null),
             () -> c.forEach(null),
             () -> c.iterator().forEachRemaining(null),
             () -> c.spliterator().forEachRemaining(null),
             () -> c.spliterator().tryAdvance(null),
-            () -> c.toArray(null));
+            () -> c.toArray((Object[])null));
 
         if (!impl.permitsNulls()) {
             assertThrows(
                 NullPointerException.class,
                 () -> c.add(null));
< prev index next >