# | Line 575 | Line 575 | public class ForkJoinPoolTest extends JS | |
---|---|---|
575 | ForkJoinPool p = new ForkJoinPool(1); | |
576 | try { | |
577 | p.submit(new Callable() { | |
578 | < | public Object call() { |
579 | < | int i = 5/0; |
580 | < | return Boolean.TRUE; |
581 | < | }}).get(); |
578 | > | public Object call() { throw new ArithmeticException(); }}) |
579 | > | .get(); |
580 | shouldThrow(); | |
581 | } catch (ExecutionException success) { | |
582 | assertTrue(success.getCause() instanceof ArithmeticException); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |