Skip to content

Commit 4cf195f

Browse files
committed
8318573: The nsk.share.jpda.SocketConnection should fail if socket was closed.
Reviewed-by: sspitsyn, cjplummer
1 parent af2f4bf commit 4cf195f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/hotspot/jtreg/vmTestbase/nsk/share/jpda/SocketConnection.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ public Object readObject() {
517517
try {
518518
return doReadObject();
519519
} catch (EOFException e) {
520-
return null;
520+
e.printStackTrace(logger.getOutStream());
521+
throw new Failure("Caught EOFException while reading an object from " + name + " connection."
522+
+ " Check if debuggee process exited prematurely (crashed or killed).\n\t");
521523
} catch (Exception e) {
522524
e.printStackTrace(logger.getOutStream());
523525
throw new Failure("Caught Exception while reading an object from " + name + " connection:\n\t" + e);

0 commit comments

Comments
 (0)