# | Line 655 | Line 655 | public class ArrayDequeTest extends JSR1 | |
---|---|---|
655 | } | |
656 | ||
657 | /** | |
658 | < | * toArray with incompatible array type throws CCE |
658 | > | * toArray(incompatible array type) throws ArrayStoreException |
659 | */ | |
660 | public void testToArray1_BadArg() { | |
661 | ArrayDeque l = new ArrayDeque(); | |
662 | l.add(new Integer(5)); | |
663 | try { | |
664 | < | Object o[] = l.toArray(new String[10]); |
664 | > | l.toArray(new String[10]); |
665 | shouldThrow(); | |
666 | } catch (ArrayStoreException success) {} | |
667 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |