162 |
|
*/ |
163 |
|
public void testForkTimedGetNPE() { |
164 |
|
RecursiveAction a = new RecursiveAction() { |
165 |
< |
public void compute() { |
166 |
< |
try { |
167 |
< |
FibAction f = new FibAction(8); |
168 |
< |
f.fork(); |
169 |
< |
f.get(5L, null); |
170 |
< |
shouldThrow(); |
171 |
< |
} catch (NullPointerException success) { |
172 |
< |
} catch (Exception ex) { |
173 |
< |
unexpectedException(ex); |
174 |
< |
} |
165 |
> |
public void compute() { |
166 |
> |
try { |
167 |
> |
FibAction f = new FibAction(8); |
168 |
> |
f.fork(); |
169 |
> |
f.get(5L, null); |
170 |
> |
shouldThrow(); |
171 |
> |
} catch (NullPointerException success) { |
172 |
> |
} catch (Exception ex) { |
173 |
> |
unexpectedException(ex); |
174 |
|
} |
175 |
< |
}; |
175 |
> |
}}; |
176 |
|
mainPool.invoke(a); |
177 |
|
} |
178 |
|
|