Java 27 and 26: runnable demos and captured output for every JEP, plus version lanes
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