RFR: 8293445: clhsdb "thread" command gives incorrect error message for bad threadID
Daniel D. Daugherty
dcubed at openjdk.org
Tue Sep 6 20:07:45 UTC 2022
On Tue, 6 Sep 2022 19:28:15 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
> As pointed out in [JDK-8283010](https://bugs.openjdk.org/browse/JDK-8283010), when a bad threadID is passed to the clhsdb "thread" command, the error message is incorrect:
>
> hsdb> thread 18
> Couldn't find thread thread
>
> It should say "thread 18", not "thread thread". The code looks like:
>
> out.println("Couldn't find thread " + name);
>
> "name" is the name of the command. It should instead use "id".
>
> I'd like to push this as a trivial change.
Thumbs up. I agree that this is a trivial fix.
-------------
Marked as reviewed by dcubed (Reviewer).
PR: https://git.openjdk.org/jdk/pull/10186
More information about the serviceability-dev
mailing list