< prev index next >

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

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

@@ -400,11 +400,11 @@
      */
     public void testToArray_NullArg() {
         LinkedList l = new LinkedList();
         l.add(new Object());
         try {
-            l.toArray(null);
+            l.toArray((Object[])null);
             shouldThrow();
         } catch (NullPointerException success) {}
     }
 
     /**
< prev index next >