< prev index next >
test/jdk/java/util/concurrent/tck/SynchronousQueueTest.java
Print this page
rev 48215 : 8060192: Add default method <A> A[] Collection.toArray(IntFunction<A[]> generator)
Reviewed-by: martin, forax, psandoz
@@ -462,11 +462,11 @@
public void testToArray_null() { testToArray_null(false); }
public void testToArray_null_fair() { testToArray_null(true); }
public void testToArray_null(boolean fair) {
final SynchronousQueue q = new SynchronousQueue(fair);
try {
- Object[] o = q.toArray(null);
+ Object[] o = q.toArray((Object[])null);
shouldThrow();
} catch (NullPointerException success) {}
}
/**
< prev index next >