RFR: 8339384: Unintentional IOException in jdk.jdi module when JDWP end of stream occurs

Kevin Walls kevinw at openjdk.org
Wed Sep 4 08:31:20 UTC 2024


On Mon, 2 Sep 2024 12:24:28 GMT, Yagmur Eren <duke at openjdk.org> wrote:

> A logic error in the block of code in com.sun.tools.jdi.TargetVM is fixed by putting fromByteArray() method within else statement to prevent invoking it when the array b is empty. See issue: [JDK-8339384](https://bugs.openjdk.org/browse/JDK-8339384)

Looks good.  Yes my understanding is that this is a wasteful IOException being created, not one that propagates out and causes any interruption.

Also 2022 -> 2024 on the (C)opyright year.

-------------

Marked as reviewed by kevinw (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/20815#pullrequestreview-2279361354


More information about the serviceability-dev mailing list