--- jsr166/src/test/tck/LinkedBlockingQueueTest.java 2003/10/05 23:00:40 1.6 +++ jsr166/src/test/tck/LinkedBlockingQueueTest.java 2004/01/07 01:13:50 1.9 @@ -1,8 +1,9 @@ /* - * Written by members of JCP JSR-166 Expert Group and released to the - * public domain. Use, modify, and redistribute this code in any way - * without acknowledgement. Other contributors include Andrew Wright, - * Jeffrey Hayes, Pat Fischer, Mike Judd. + * Written by Doug Lea with assistance from members of JCP JSR-166 + * Expert Group and released to the public domain, as explained at + * http://creativecommons.org/licenses/publicdomain + * Other contributors include Andrew Wright, Jeffrey Hayes, + * Pat Fisher, Mike Judd. */ import junit.framework.*; @@ -731,7 +732,7 @@ public class LinkedBlockingQueueTest ext } /** - * toArray with incompatable array type throws CCE + * toArray with incompatible array type throws CCE */ public void testToArray1_BadArg() { try { @@ -979,7 +980,7 @@ public class LinkedBlockingQueueTest ext for (int i = 0; i < SIZE; ++i) assertEquals(l.get(i), new Integer(i)); t.join(); - assertTrue(q.size() + l.size() == SIZE+1); + assertTrue(q.size() + l.size() >= SIZE); } catch(Exception e){ unexpectedException(); }