8319213: Compatibility.java reads both stdout and stderr of JdkUtils

Reviewed-by: rhalade
This commit is contained in:
Weijun Wang 2023-11-02 17:39:34 +00:00
parent 6ad093ef12
commit 84f4f7477c

View File

@ -1026,7 +1026,7 @@ public class Compatibility {
cmd[3] = JdkUtils.class.getName();
cmd[4] = method;
System.arraycopy(args, 0, cmd, 5, args.length);
return ProcessTools.executeCommand(cmd).getOutput();
return ProcessTools.executeCommand(cmd).getStdout();
}
// Executes the specified JDK tools, such as keytool and jarsigner, and