[concurrency-interest] More Javadoc problems
cowwoc at bbs.darktech.org
Sun Dec 21 17:51:35 EST 2014
On 20/12/2014 1:23 PM, Doug Lea [via JSR166 Concurrency] wrote:
> > because if it did it would throw exception2.addSuppressed(exception1)
> > instead of exception1. Would it not?
> Not. This is only done in try-with-resources.
> See the (adjacent) JLS sections:
My interpretation of the first link is that:
will end up throwing Y. My interpretation of the second link is that:
will end up throwing X.addSuppressed(Y). But according to our
discussion, CompletableFuture ends up throwing X, which does not match
the behavior of try-finally or try-with-resources. Am I missing anything?
View this message in context: http://jsr166-concurrency.10961.n7.nabble.com/More-Javadoc-problems-tp11669p11710.html
Sent from the JSR166 Concurrency mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest