changeset 409:c678b172284b

6725192: Some JDI Regression tests fail if @debuggeeVMOptions contain multiple blanks Summary: Fix to allow mutiple blanks between options Reviewed-by: tbell
author jjh
date Fri, 11 Jul 2008 17:06:54 -0700
parents c07f7975da4d
children c5ebc4603dc6 4fbfb33929c3 0101affc9fd6
files test/com/sun/jdi/VMConnection.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/jdi/VMConnection.java	Wed Jul 09 16:57:39 2008 -0700
+++ b/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);