8318573: The nsk.share.jpda.SocketConnection should fail if socket was closed.

Reviewed-by: sspitsyn, cjplummer
This commit is contained in:
Leonid Mesnik 2023-10-21 03:35:52 +00:00
parent af2f4bfa83
commit 4cf195f00c

View File

@ -517,7 +517,9 @@ public class SocketConnection extends BasicSocketConnection {
try {
return doReadObject();
} catch (EOFException e) {
return null;
e.printStackTrace(logger.getOutStream());
throw new Failure("Caught EOFException while reading an object from " + name + " connection."
+ " Check if debuggee process exited prematurely (crashed or killed).\n\t");
} catch (Exception e) {
e.printStackTrace(logger.getOutStream());
throw new Failure("Caught Exception while reading an object from " + name + " connection:\n\t" + e);