--- jsr166/src/test/tck/ForkJoinPoolTest.java 2010/09/17 17:07:47 1.30 +++ jsr166/src/test/tck/ForkJoinPoolTest.java 2010/10/09 19:46:42 1.31 @@ -531,9 +531,8 @@ public class ForkJoinPoolTest extends JS */ public void testExecuteNullRunnable() { ExecutorService e = new ForkJoinPool(1); - TrackedShortRunnable task = null; try { - Future future = e.submit(task); + Future future = e.submit((Runnable) null); shouldThrow(); } catch (NullPointerException success) { } finally { @@ -547,9 +546,8 @@ public class ForkJoinPoolTest extends JS */ public void testSubmitNullCallable() { ExecutorService e = new ForkJoinPool(1); - StringTask t = null; try { - Future future = e.submit(t); + Future future = e.submit((Callable) null); shouldThrow(); } catch (NullPointerException success) { } finally {