51 |
exInfo = CancellationException.class; |
exInfo = CancellationException.class; |
52 |
} catch (ExecutionException t) { |
} catch (ExecutionException t) { |
53 |
exInfo = t.getCause(); |
exInfo = t.getCause(); |
54 |
} catch (Throwable t) { |
} catch (Exception t) { |
55 |
threadUnexpectedException(t); |
threadUnexpectedException(t); |
56 |
} |
} |
57 |
|
|
66 |
assertSame(exInfo, CancellationException.class); |
assertSame(exInfo, CancellationException.class); |
67 |
} catch (ExecutionException t) { |
} catch (ExecutionException t) { |
68 |
assertSame(exInfo, t.getCause()); |
assertSame(exInfo, t.getCause()); |
69 |
} catch (Throwable t) { |
} catch (Exception t) { |
70 |
threadUnexpectedException(t); |
threadUnexpectedException(t); |
71 |
} |
} |
72 |
assertTrue(f.isDone()); |
assertTrue(f.isDone()); |