Should System.exit be controlled by a Scope Local?

Andrew Haley aph-open at littlepinkcloud.com
Tue Mar 15 12:59:28 UTC 2022


On 3/1/22 18:17, Sean Mullan wrote:
> Can you explain in a little more detail as to what the compatibility
> issues are with preventing threads in thread pools from calling System.exit?

It is possible, I suppose, that some rather odd programmer is using
a task in a thread pool to exit their program. I know, unlikely, but
we preserve compatibility.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the core-libs-dev mailing list