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

Comparing jsr166/src/test/tck/LinkedBlockingQueueTest.java (file contents):
Revision 1.33 by jsr166, Thu Oct 28 22:20:47 2010 UTC vs.
Revision 1.34 by jsr166, Wed Nov 3 07:54:52 2010 UTC

# Line 639 | Line 639 | public class LinkedBlockingQueueTest ext
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          LinkedBlockingQueue 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      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines