[External] : Re: STS allows to bypass any checked exceptions

Alan Bateman Alan.Bateman at oracle.com
Mon May 15 16:40:58 UTC 2023


On 15/05/2023 16:56, Attila Kelemen wrote:
> Or is there any plan to provide something even lower level? I mean -
> if I'm not mistaken - currently the only reason I can't write an STS,
> because I can't make threads inherit the scoped values. If that
> ability would be provided, then providing STS in the JDK wouldn't be
> that necessary, since 3rd party libs could provide it at a lower risk.
> Or is the internal `ThreadFlock` you are planning to open is planned
> instead of directly allowing scoped value inheritance / capture?
The lower level infrastructure provides the serviceability support, tree 
structured and the inheritance of scoped values. In time, as Ron says, 
it might be that a lower-level API is exposed but not the current JEP.

-Alan


More information about the loom-dev mailing list