changeset 22788:15d43ee7ae8d

8034781: [TESTBUG] runtime/ClassFileUnsupportedClassFileVersion.java unable to find or load main class Summary: Passed empty string to ProcessBuilder which caused problems on Linux, fixed by checking string length Reviewed-by: lfoltan, sla, mseledtsov
author ctornqvi
date Wed, 12 Feb 2014 20:40:02 +0100
parents 390eea0c8cd0
children f3ed59131459
files hotspot/test/testlibrary/com/oracle/java/testlibrary/ProcessTools.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/test/testlibrary/com/oracle/java/testlibrary/ProcessTools.java	Wed Feb 12 12:09:22 2014 -0800
+++ b/hotspot/test/testlibrary/com/oracle/java/testlibrary/ProcessTools.java	Wed Feb 12 20:40:02 2014 +0100
@@ -154,7 +154,7 @@
 
     if (addTestVmOptions) {
       String vmopts = System.getProperty("test.vm.opts");
-      if (vmopts != null) {
+      if (vmopts != null && vmopts.length() > 0) {
         Collections.addAll(args, vmopts.split("\\s"));
       }
     }