Skip to content

Commit d63388c

Browse files
author
Alex Menkov
committed
8259266: com/sun/jdi/JdbOptions.java failed with "RuntimeException: 'prop[boo] = >foo 2<' missing from stdout/stderr"
Reviewed-by: cjplummer, sspitsyn
1 parent d7d34dd commit d63388c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/VMConnection.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -485,11 +485,10 @@ private void dumpStream(InputStream stream) throws IOException {
485485
// printDirect()
486486
}
487487
} catch (IOException ex) {
488-
String s = ex.getMessage();
489-
if (!s.startsWith("Bad file number")) {
488+
if (!ex.getMessage().equalsIgnoreCase("stream closed")) {
490489
throw ex;
491490
}
492-
// else we got a Bad file number IOException which just means
491+
// else we got a "Stream closed" IOException which just means
493492
// that the debuggee has gone away. We'll just treat it the
494493
// same as if we got an EOF.
495494
}

0 commit comments

Comments
 (0)