--- jsr166/src/test/tck/ExecutorsTest.java 2010/10/04 03:34:21 1.32 +++ jsr166/src/test/tck/ExecutorsTest.java 2010/10/04 05:45:44 1.33 @@ -223,11 +223,10 @@ public class ExecutorsTest extends JSR16 * Future.get on submitted tasks will time out if they compute too long. */ public void testTimedCallable() throws Exception { - final Runnable sleeper = - new RunnableShouldThrow(InterruptedException.class) { - public void realRun() throws InterruptedException { - Thread.sleep(LONG_DELAY_MS); - }}; + final Runnable sleeper = new CheckedInterruptedRunnable() { + public void realRun() throws InterruptedException { + Thread.sleep(LONG_DELAY_MS); + }}; for (ExecutorService executor : new ExecutorService[] { Executors.newSingleThreadExecutor(),