Skip to content

Commit

Permalink
8283224: Remove THREAD_NOT_ALIVE from possible JDWP error codes
Browse files Browse the repository at this point in the history
Reviewed-by: alanb, sspitsyn
  • Loading branch information
plummercj committed Sep 7, 2022
1 parent 76df73b commit aff9a69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/java.se/share/data/jdwp/jdwp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,6 @@ public void forceEarlyReturn(Value returnValue) throws InvalidTypeException,
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");
Expand Down

1 comment on commit aff9a69

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.