Java 27 and 26: runnable demos and captured output for every JEP, plus version lanes
Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B38FGKKam5SCGgwgduVAh3
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// Thread.stop() has thrown UnsupportedOperationException since 20. In 26 the method itself is gone.
|
||||
public class ThreadStopGone {
|
||||
public static void main(String[] args) {
|
||||
Thread t = new Thread(() -> {});
|
||||
t.stop();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user