--- jsr166/src/test/tck/ExecutorsTest.java 2010/10/04 03:34:21 1.32 +++ jsr166/src/test/tck/ExecutorsTest.java 2010/10/09 19:30:35 1.34 @@ -220,14 +220,13 @@ public class ExecutorsTest extends JSR16 } /** - * Future.get on submitted tasks will time out if they compute too long. + * 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(),