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

Comparing jsr166/src/test/tck/LinkedBlockingDequeTest.java (file contents):
Revision 1.28 by jsr166, Thu Oct 28 17:57:26 2010 UTC vs.
Revision 1.29 by jsr166, Wed Nov 3 07:54:52 2010 UTC

# Line 1326 | Line 1326 | public class LinkedBlockingDequeTest ext
1326      }
1327  
1328      /**
1329 <     * toArray with incompatible array type throws CCE
1329 >     * toArray(incompatible array type) throws ArrayStoreException
1330       */
1331      public void testToArray1_BadArg() {
1332          LinkedBlockingDeque q = populatedDeque(SIZE);
1333          try {
1334 <            Object o[] = q.toArray(new String[10]);
1334 >            q.toArray(new String[10]);
1335              shouldThrow();
1336          } catch (ArrayStoreException success) {}
1337      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines