# | Line 639 | Line 639 | public class ArrayBlockingQueueTest exte | |
---|---|---|
639 | } | |
640 | ||
641 | /** | |
642 | < | * toArray with incompatible array type throws CCE |
642 | > | * toArray(incompatible array type) throws ArrayStoreException |
643 | */ | |
644 | public void testToArray1_BadArg() { | |
645 | ArrayBlockingQueue q = populatedQueue(SIZE); | |
646 | try { | |
647 | < | Object o[] = q.toArray(new String[10]); |
647 | > | q.toArray(new String[10]); |
648 | shouldThrow(); | |
649 | } catch (ArrayStoreException success) {} | |
650 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |