--- jsr166/src/test/tck/AbstractExecutorServiceTest.java 2011/05/29 07:01:17 1.32 +++ jsr166/src/test/tck/AbstractExecutorServiceTest.java 2013/01/14 22:05:39 1.33 @@ -213,7 +213,7 @@ public class AbstractExecutorServiceTest new ArrayBlockingQueue(10)); Callable c = new Callable() { - public Object call() { return 5/0; }}; + public Object call() { throw new ArithmeticException(); }}; try { p.submit(c).get(); @@ -257,9 +257,9 @@ public class AbstractExecutorServiceTest */ public void testInvokeAny3() throws Exception { ExecutorService e = new DirectExecutorService(); - List> l = new ArrayList>(); - l.add(new Callable() { - public Integer call() { return 5/0; }}); + List> l = new ArrayList>(); + l.add(new Callable() { + public Long call() { throw new ArithmeticException(); }}); l.add(null); try { e.invokeAny(l); @@ -435,9 +435,9 @@ public class AbstractExecutorServiceTest */ public void testTimedInvokeAny3() throws Exception { ExecutorService e = new DirectExecutorService(); - List> l = new ArrayList>(); - l.add(new Callable() { - public Integer call() { return 5/0; }}); + List> l = new ArrayList>(); + l.add(new Callable() { + public Long call() { throw new ArithmeticException(); }}); l.add(null); try { e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS);