Skip to content

Commit

Permalink
8339384: Unintentional IOException in jdk.jdi module when JDWP end of…
Browse files Browse the repository at this point in the history
… stream occurs

Reviewed-by: kevinw
Backport-of: 2305d18
  • Loading branch information
nelanbu authored and kevinjwalls committed Sep 24, 2024
1 parent a21db48 commit 7f9c4ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jdk.jdi/share/classes/com/sun/tools/jdi/TargetVM.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -123,8 +123,9 @@ public void run() {
byte b[] = connection.readPacket();
if (b.length == 0) {
done = true;
} else {
p = Packet.fromByteArray(b);
}
p = Packet.fromByteArray(b);
} catch (IOException e) {
done = true;
}
Expand Down

0 comments on commit 7f9c4ab

Please sign in to comment.