--- jsr166/src/test/tck/RecursiveActionTest.java 2009/08/01 22:09:13 1.4 +++ jsr166/src/test/tck/RecursiveActionTest.java 2009/08/04 09:52:04 1.5 @@ -172,6 +172,7 @@ public class RecursiveActionTest extends FibAction f = new FibAction(8); f.fork(); f.get(5L, null); + shouldThrow(); } catch (NullPointerException success) { } catch (Exception ex) { unexpectedException(); @@ -310,7 +311,9 @@ public class RecursiveActionTest extends f.fork(); f.get(); shouldThrow(); - } catch (Exception success) { + } catch (ExecutionException success) { + } catch (Exception ex) { + unexpectedException(ex); } } }; @@ -328,7 +331,9 @@ public class RecursiveActionTest extends f.fork(); f.get(5L, TimeUnit.SECONDS); shouldThrow(); - } catch (Exception success) { + } catch (ExecutionException success) { + } catch (Exception ex) { + unexpectedException(ex); } } }; @@ -440,7 +445,9 @@ public class RecursiveActionTest extends f.fork(); f.get(); shouldThrow(); - } catch (Exception success) { + } catch (CancellationException success) { + } catch (Exception ex) { + unexpectedException(ex); } } }; @@ -459,7 +466,9 @@ public class RecursiveActionTest extends f.fork(); f.get(5L, TimeUnit.SECONDS); shouldThrow(); - } catch (Exception success) { + } catch (CancellationException success) { + } catch (Exception ex) { + unexpectedException(ex); } } };