# | Line 353 | Line 353 | public class LinkedListTest extends JSR1 | |
---|---|---|
353 | } | |
354 | ||
355 | /** | |
356 | < | * toArray with incompatible array type throws CCE |
356 | > | * toArray(incompatible array type) throws ArrayStoreException |
357 | */ | |
358 | public void testToArray1_BadArg() { | |
359 | LinkedList l = new LinkedList(); | |
360 | l.add(new Integer(5)); | |
361 | try { | |
362 | < | Object o[] = l.toArray(new String[10]); |
362 | > | l.toArray(new String[10]); |
363 | shouldThrow(); | |
364 | } catch (ArrayStoreException success) {} | |
365 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |