This is an automated email from the ASF dual-hosted git repository.
jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new bdce0b0 InputStream.read(<array>) may read less bytes than requested
- using readFully to read all requested bytes.
new 7f9bd8d Merge pull request #1855 from jlahoda/clihandler-readfully
bdce0b0 is described below
commit bdce0b0116fc0651e1a0534913a5b2d8faa9c99e
Author: Jan Lahoda <[email protected]>
AuthorDate: Wed Jan 8 22:35:18 2020 +0100
InputStream.read(<array>) may read less bytes than requested - using
readFully to read all requested bytes.
---
platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java
b/platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java
index 12abdec..f1c99d8 100644
--- a/platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java
+++ b/platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java
@@ -818,7 +818,7 @@ public abstract class CLIHandler extends Object {
if (howMuch > outputArr.length) {
outputArr = new byte[howMuch];
}
- replyStream.read(outputArr, 0, howMuch);
+ replyStream.readFully(outputArr, 0,
howMuch);
args.getOutputStream().write(outputArr, 0,
howMuch);
break;
}
@@ -828,7 +828,7 @@ public abstract class CLIHandler extends Object {
if (howMuch > outputArr.length) {
outputArr = new byte[howMuch];
}
- replyStream.read(outputArr, 0, howMuch);
+ replyStream.readFully(outputArr, 0,
howMuch);
args.getErrorStream().write(outputArr, 0,
howMuch);
break;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists