From 0b12335ce70c58aaa5d27c3bef7789ca8767c797 Mon Sep 17 00:00:00 2001 From: jjh Date: Fri, 11 Jul 2008 17:06:54 -0700 Subject: [PATCH] 6725192: Some JDI Regression tests fail if @debuggeeVMOptions contain multiple blanks Summary: Fix to allow mutiple blanks between options Reviewed-by: tbell --- test/com/sun/jdi/VMConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/com/sun/jdi/VMConnection.java b/test/com/sun/jdi/VMConnection.java index f370bf46b..c9cb83f72 100644 --- a/test/com/sun/jdi/VMConnection.java +++ b/test/com/sun/jdi/VMConnection.java @@ -115,7 +115,7 @@ class VMConnection { 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); -- GitLab