ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/LinkedListTest.java
(Generate patch)

Comparing jsr166/src/test/tck/LinkedListTest.java (file contents):
Revision 1.20 by jsr166, Sat Oct 9 19:30:35 2010 UTC vs.
Revision 1.21 by jsr166, Wed Nov 3 07:54:52 2010 UTC

# 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      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines