# | Line 51 | Line 51 | public class FutureTaskTest extends JSR1 | |
---|---|---|
51 | exInfo = CancellationException.class; | |
52 | } catch (ExecutionException t) { | |
53 | exInfo = t.getCause(); | |
54 | < | } catch (Throwable t) { |
54 | > | } catch (Exception t) { |
55 | threadUnexpectedException(t); | |
56 | } | |
57 | ||
# | Line 66 | Line 66 | public class FutureTaskTest extends JSR1 | |
66 | assertSame(exInfo, CancellationException.class); | |
67 | } catch (ExecutionException t) { | |
68 | assertSame(exInfo, t.getCause()); | |
69 | < | } catch (Throwable t) { |
69 | > | } catch (Exception t) { |
70 | threadUnexpectedException(t); | |
71 | } | |
72 | assertTrue(f.isDone()); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |