8283224: Remove THREAD_NOT_ALIVE from possible JDWP error codes

Reviewed-by: alanb, sspitsyn
This commit is contained in:
Chris Plummer 2022-09-07 19:46:19 +00:00
parent 76df73b390
commit aff9a696cb
2 changed files with 1 additions and 4 deletions
src
java.se/share/data/jdwp
jdk.jdi/share/classes/com/sun/tools/jdi

@ -3164,7 +3164,7 @@ JDWP "Java(tm) Debug Wire Protocol"
(Constant THREAD_NOT_SUSPENDED =13 "If the specified thread has not been "
"suspended by an event.")
(Constant THREAD_SUSPENDED =14 "Thread already suspended.")
(Constant THREAD_NOT_ALIVE =15 "Thread has not been started or has terminated.")
(Constant THREAD_NOT_ALIVE =15 "Not used.")
(Constant INVALID_OBJECT =20 "If this reference type has been unloaded "
"and garbage collected.")
(Constant INVALID_CLASS =21 "Invalid class.")

@ -595,9 +595,6 @@ public class ThreadReferenceImpl extends ObjectReferenceImpl
case JDWP.Error.THREAD_NOT_SUSPENDED:
throw new IncompatibleThreadStateException(
"Thread not suspended");
case JDWP.Error.THREAD_NOT_ALIVE:
throw new IncompatibleThreadStateException(
"Thread has not started or has finished");
case JDWP.Error.NO_MORE_FRAMES:
throw new InvalidStackFrameException(
"No more frames on the stack");