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

Reviewed-by: cjplummer, kevinw
This commit is contained in:
Yagmur Eren 2024-09-05 09:26:08 +00:00
parent 96a0502d62
commit 2305d18e8d

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -123,8 +123,9 @@ public class TargetVM implements Runnable {
byte b[] = connection.readPacket();
if (b.length == 0) {
done = true;
} else {
p = Packet.fromByteArray(b);
}
p = Packet.fromByteArray(b);
} catch (IOException e) {
done = true;
}