OpenJDK / amber / amber
changeset 838:d01176a115ba
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 | 7c6095e6a342 |
children | b975395ac221 3e71bbfedb95 |
files | jdk/test/com/sun/jdi/VMConnection.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);