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

Comparing jsr166/src/test/tck/ArrayDequeTest.java (file contents):
Revision 1.16 by jsr166, Wed Aug 25 01:46:24 2010 UTC vs.
Revision 1.17 by jsr166, Wed Nov 3 07:54:52 2010 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines