--- jsr166/src/test/tck/LinkedListTest.java 2010/11/03 07:54:52 1.21 +++ jsr166/src/test/tck/LinkedListTest.java 2010/11/03 16:46:34 1.22 @@ -341,13 +341,13 @@ public class LinkedListTest extends JSR1 } /** - * toArray(null) throws NPE + * toArray(null) throws NullPointerException */ - public void testToArray_BadArg() { + public void testToArray_NullArg() { LinkedList l = new LinkedList(); l.add(new Object()); try { - Object o[] = l.toArray(null); + l.toArray(null); shouldThrow(); } catch (NullPointerException success) {} }