# | Line 417 | Line 417 | public class ConcurrentLinkedQueueTest e | |
---|---|---|
417 | } | |
418 | ||
419 | /** | |
420 | < | * toArray with incompatible array type throws CCE |
420 | > | * toArray with incompatible array type throws ArrayStoreException |
421 | */ | |
422 | public void testToArray1_BadArg() { | |
423 | try { | |
424 | ConcurrentLinkedQueue q = populatedQueue(SIZE); | |
425 | Object o[] = q.toArray(new String[10] ); | |
426 | shouldThrow(); | |
427 | < | } catch (ArrayStoreException success) {} |
427 | > | } catch (ArrayStoreException success) {} |
428 | } | |
429 | ||
430 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |