--- jsr166/src/test/tck/ThreadPoolExecutorTest.java 2004/04/10 14:27:17 1.19 +++ jsr166/src/test/tck/ThreadPoolExecutorTest.java 2004/04/12 12:03:10 1.20 @@ -39,7 +39,7 @@ public class ThreadPoolExecutorTest exte static class FailingThreadFactory implements ThreadFactory{ int calls = 0; public Thread newThread(Runnable r){ - if (++calls > 1) throw new NullPointerException(); + if (++calls > 1) return null; return new Thread(r); } }