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

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

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

revision 1.18, Wed Dec 23 00:47:16 2009 UTC revision 1.21, Wed Nov 3 07:54:52 2010 UTC
# Line 353  Line 353 
353      }      }
354    
355      /**      /**
356       * toArray with incompatible array type throws CCE       * toArray(incompatible array type) throws ArrayStoreException
357       */       */
358      public void testToArray1_BadArg() {      public void testToArray1_BadArg() {
359          LinkedList l = new LinkedList();          LinkedList l = new LinkedList();
360          l.add(new Integer(5));          l.add(new Integer(5));
361          try {          try {
362              Object o[] = l.toArray(new String[10]);              l.toArray(new String[10]);
363              shouldThrow();              shouldThrow();
364          } catch (ArrayStoreException success) {}          } catch (ArrayStoreException success) {}
365      }      }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.21

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8