Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B38FGKKam5SCGgwgduVAh3
69 lines
2.1 KiB
Plaintext
69 lines
2.1 KiB
Plaintext
# Thread.stop(), suspend(), resume(): when did they actually go?
|
|
|
|
$ java ThreadStopRuntime (JDK 21)
|
|
java.version = 21.0.12.1
|
|
Thread.stop(): UnsupportedOperationException
|
|
|
|
$ java ThreadStopRuntime (JDK 25)
|
|
java.version = 25.0.4.1
|
|
Thread.stop(): UnsupportedOperationException
|
|
|
|
$ javac ThreadSuspendGone.java (JDK 21)
|
|
exit=0
|
|
|
|
$ javac ThreadSuspendGone.java (JDK 25)
|
|
<repo>/lanes/src/ThreadSuspendGone.java:8: error: cannot find symbol
|
|
t.suspend();
|
|
^
|
|
symbol: method suspend()
|
|
location: variable t of type Thread
|
|
<repo>/lanes/src/ThreadSuspendGone.java:9: error: cannot find symbol
|
|
t.resume();
|
|
^
|
|
symbol: method resume()
|
|
location: variable t of type Thread
|
|
2 errors
|
|
exit=1
|
|
|
|
$ javac ThreadSuspendGone.java (JDK 26)
|
|
<repo>/lanes/src/ThreadSuspendGone.java:8: error: cannot find symbol
|
|
t.suspend();
|
|
^
|
|
symbol: method suspend()
|
|
location: variable t of type Thread
|
|
<repo>/lanes/src/ThreadSuspendGone.java:9: error: cannot find symbol
|
|
t.resume();
|
|
^
|
|
symbol: method resume()
|
|
location: variable t of type Thread
|
|
2 errors
|
|
exit=1
|
|
|
|
$ javac ThreadSuspendGone.java (JDK 23, Corretto image)
|
|
/src/ThreadSuspendGone.java:8: error: cannot find symbol
|
|
t.suspend();
|
|
^
|
|
symbol: method suspend()
|
|
location: variable t of type Thread
|
|
/src/ThreadSuspendGone.java:9: error: cannot find symbol
|
|
t.resume();
|
|
^
|
|
symbol: method resume()
|
|
location: variable t of type Thread
|
|
2 errors
|
|
exit=1
|
|
|
|
$ javac ThreadSuspendGone.java (JDK 24, Corretto image)
|
|
/src/ThreadSuspendGone.java:8: error: cannot find symbol
|
|
t.suspend();
|
|
^
|
|
symbol: method suspend()
|
|
location: variable t of type Thread
|
|
/src/ThreadSuspendGone.java:9: error: cannot find symbol
|
|
t.resume();
|
|
^
|
|
symbol: method resume()
|
|
location: variable t of type Thread
|
|
2 errors
|
|
exit=1
|