STS allows to bypass any checked exceptions
Alan Bateman
Alan.Bateman at oracle.com
Sun May 14 13:14:30 UTC 2023
On 14/05/2023 11:47, Attila Kelemen wrote:
> :
> That is - assuming join is invoked without interruption - my problem
> with the shown behaviour is that the exception thrown by the
> `Callable` is discarded and an ISE is thrown instead, so we are losing
> the original exception which could be used for tracking the issue.
The `get` method is used to get the result of as task that completed
successfully, it's not discarding anything. But maybe you are arguing to
stay with Future so that Future::get throws ExecutionException with the
exception as the cause?
-Alan.
More information about the loom-dev
mailing list