File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments