6725192: Some JDI Regression tests fail if @debuggeeVMOptions contain multiple blanks
Summary: Fix to allow mutiple blanks between options
Reviewed-by: tbell
--- a/jdk/test/com/sun/jdi/VMConnection.java Wed Jul 09 16:57:39 2008 -0700
+++ b/jdk/test/com/sun/jdi/VMConnection.java Fri Jul 11 17:06:54 2008 -0700
@@ -115,7 +115,7 @@
return cmdLine;
}
// 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];
retVal[0] = cmdLine[0];
System.arraycopy(v1, 0, retVal, 1, v1.length);