Does anyone have a way to start an evaluation that will need Thread.stop() to interrupt? Iām looking at how to improve the feedback in Calva when people run into the problem that the interrupt op stops being as effective in JDK20+ https://github.com/BetterThanTomorrow/calva/issues/2324
Nevertheless I failed to figure out a reproduction. š Things I tried were always interruptible.
Perhaps some heavy computation?
I think pretty much nothing can be interrupted, unless it was designed to be "interrupt"-friendly.
> If the targeted thread has been waiting (by calling wait(), or some other related methods that essentially do the same thing, such as sleep()), it will be interrupted, meaning that it stops waiting for what it was waiting for and receives an InterruptedException instead.
That's why I think you can just issue a blanked warning that interrupt probably doesn't work on Java 20+.
Btw, this doesn't affect bb too, since Thread.stop was never supported in native-image from the beginning
Thanks. Will update.