[cvs] / jsr166 / src / test / tck / ArrayBlockingQueueTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ArrayBlockingQueueTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37, Thu Oct 28 22:20:47 2010 UTC revision 1.38, Wed Nov 3 07:54:52 2010 UTC
# Line 639  Line 639 
639      }      }
640    
641      /**      /**
642       * toArray with incompatible array type throws CCE       * toArray(incompatible array type) throws ArrayStoreException
643       */       */
644      public void testToArray1_BadArg() {      public void testToArray1_BadArg() {
645          ArrayBlockingQueue q = populatedQueue(SIZE);          ArrayBlockingQueue q = populatedQueue(SIZE);
646          try {          try {
647              Object o[] = q.toArray(new String[10]);              q.toArray(new String[10]);
648              shouldThrow();              shouldThrow();
649          } catch (ArrayStoreException success) {}          } catch (ArrayStoreException success) {}
650      }      }

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8