6725192: Some JDI Regression tests fail if @debuggeeVMOptions contain multiple blanks
authorjjh
Fri, 11 Jul 2008 17:06:54 -0700
changeset 838 d01176a115ba
parent 837 7c6095e6a342
child 839 b975395ac221
child 844 3e71bbfedb95
6725192: Some JDI Regression tests fail if @debuggeeVMOptions contain multiple blanks Summary: Fix to allow mutiple blanks between options Reviewed-by: tbell
jdk/test/com/sun/jdi/VMConnection.java
--- 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);