STS allows to bypass any checked exceptions

Alan Bateman Alan.Bateman at oracle.com
Sun May 14 16:00:51 UTC 2023


On 14/05/2023 15:42, Remi Forax wrote:
> :
> I think that TaskHandle.get() throwing ISE if STS.join() is not called before is fine because it's a reproducible scenario, throwing ISE if an exception appears in the callable is not fine because it depends on an external factor.
>
Maybe we need to improve the JEPs or javadoc but we seem to be failing 
to get across the point that the policy for exceptions is implemented by 
the subclass. You are right that if you ignore everything and assume a 
task has completed successfully then it will be problematic, the ISE was 
never intended to communicate the exception.

-Alan


More information about the loom-dev mailing list