--- jsr166/src/test/tck/ThreadPoolExecutorTest.java 2015/09/14 03:14:43 1.59 +++ jsr166/src/test/tck/ThreadPoolExecutorTest.java 2015/09/27 18:50:50 1.60 @@ -624,7 +624,8 @@ public class ThreadPoolExecutorTest exte } /** - * shutdownNow returns a list containing tasks that were not run + * shutdownNow returns a list containing tasks that were not run, + * and those tasks are drained from the queue */ public void testShutdownNow() { final ThreadPoolExecutor p = @@ -642,6 +643,7 @@ public class ThreadPoolExecutorTest exte } catch (SecurityException ok) { return; } } assertTrue(p.isShutdown()); + assertTrue(p.getQueue().isEmpty()); assertTrue(l.size() <= 4); }