RFR: 8339384: Unintentional IOException in jdk.jdi module when JDWP end of stream occurs
Yagmur Eren
duke at openjdk.org
Mon Sep 2 12:28:27 UTC 2024
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)
-------------
Commit messages:
- fix the logic error by adding else to the if block not to invoke fromByteArray if array is empty
Changes: https://git.openjdk.org/jdk/pull/20815/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20815&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8339384
Stats: 3 lines in 1 file changed: 2 ins; 1 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/20815.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20815/head:pull/20815
PR: https://git.openjdk.org/jdk/pull/20815
More information about the serviceability-dev
mailing list