--- jsr166/src/test/tck/FutureTaskTest.java 2017/10/22 01:26:49 1.49 +++ jsr166/src/test/tck/FutureTaskTest.java 2017/11/08 02:21:43 1.50 @@ -51,7 +51,7 @@ public class FutureTaskTest extends JSR1 exInfo = CancellationException.class; } catch (ExecutionException t) { exInfo = t.getCause(); - } catch (Exception t) { + } catch (Throwable t) { threadUnexpectedException(t); } @@ -66,7 +66,7 @@ public class FutureTaskTest extends JSR1 assertSame(exInfo, CancellationException.class); } catch (ExecutionException t) { assertSame(exInfo, t.getCause()); - } catch (Exception t) { + } catch (Throwable t) { threadUnexpectedException(t); } assertTrue(f.isDone()); @@ -108,7 +108,7 @@ public class FutureTaskTest extends JSR1 try { assertSame(expected, f.get()); assertSame(expected, f.get(randomTimeout(), randomTimeUnit())); - } catch (Exception fail) { threadUnexpectedException(fail); } + } catch (Throwable fail) { threadUnexpectedException(fail); } } void checkCancelled(Future f) {