提交 0b12335c 编写于 作者: J jjh

6725192: Some JDI Regression tests fail if @debuggeeVMOptions contain multiple blanks

Summary: Fix to allow mutiple blanks between options
Reviewed-by: tbell
上级 b214a3f2
...@@ -115,7 +115,7 @@ class VMConnection { ...@@ -115,7 +115,7 @@ class VMConnection {
return cmdLine; return cmdLine;
} }
// Insert the options at position 1. Blanks in args are not allowed! // Insert the options at position 1. Blanks in args are not allowed!
String[] v1 = opts.split(" "); String[] v1 = opts.split(" +");
String[] retVal = new String[cmdLine.length + v1.length]; String[] retVal = new String[cmdLine.length + v1.length];
retVal[0] = cmdLine[0]; retVal[0] = cmdLine[0];
System.arraycopy(v1, 0, retVal, 1, v1.length); System.arraycopy(v1, 0, retVal, 1, v1.length);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册