--- jsr166/src/test/tck/ThreadPoolExecutorTest.java 2015/10/04 02:24:49 1.81 +++ jsr166/src/test/tck/ThreadPoolExecutorTest.java 2015/10/04 02:26:47 1.82 @@ -426,10 +426,11 @@ public class ThreadPoolExecutorTest exte new ThreadPoolExecutor(1, 1, LONG_DELAY_MS, MILLISECONDS, new ArrayBlockingQueue(10)); - assertFalse(p.isShutdown()); - try { p.shutdown(); } catch (SecurityException ok) { return; } - assertTrue(p.isShutdown()); - joinPool(p); + try (PoolCleaner cleaner = cleaner(p)) { + assertFalse(p.isShutdown()); + try { p.shutdown(); } catch (SecurityException ok) { return; } + assertTrue(p.isShutdown()); + } } /**