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,11 @@
|
||||
/**
|
||||
* Compile-only probe: do Thread.suspend() and Thread.resume() still exist? Compiled by scripts/lanes.sh with each JDK's own javac.
|
||||
* Chapter: docs/14-lanes-21-to-25.md
|
||||
*/
|
||||
public class ThreadSuspendGone {
|
||||
@SuppressWarnings({"removal", "deprecation"})
|
||||
static void probe(Thread t) {
|
||||
t.suspend();
|
||||
t.resume();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user