< prev index next >

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

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

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