3359 |
|
} |
3360 |
|
|
3361 |
|
// jdk9 |
3362 |
< |
|
3362 |
> |
|
3363 |
|
/** |
3364 |
|
* newIncompleteFuture returns an incomplete CompletableFuture |
3365 |
|
*/ |
3410 |
|
public void testFailedFuture2() { |
3411 |
|
try { |
3412 |
|
CompletableFuture<Integer> f = CompletableFuture.failedFuture(null); |
3413 |
< |
} catch(NullPointerException success) { |
3414 |
< |
} |
3413 |
> |
shouldThrow(); |
3414 |
> |
} catch (NullPointerException success) {} |
3415 |
|
} |
3416 |
|
|
3417 |
|
/** |
3512 |
|
try { |
3513 |
|
f.join(); |
3514 |
|
shouldThrow(); |
3515 |
< |
} catch(Exception success) { |
3516 |
< |
} |
3515 |
> |
} catch (Exception success) {} |
3516 |
|
checkCompletedWithWrappedCFException(f); |
3517 |
|
} |
3518 |
|
|
3537 |
|
try { |
3538 |
|
f.join(); |
3539 |
|
shouldThrow(); |
3540 |
< |
} catch(Exception success) { |
3542 |
< |
} |
3540 |
> |
} catch (Exception success) {} |
3541 |
|
checkCompletedWithWrappedCFException(f); |
3542 |
|
} |
3543 |
|
|