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
--- 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"));
}
}