8034781: [TESTBUG] runtime/ClassFileUnsupportedClassFileVersion.java unable to find or load main class

Passed empty string to ProcessBuilder which caused problems on Linux, fixed by checking string length

Reviewed-by: lfoltan, sla, mseledtsov
This commit is contained in:
Christian Tornqvist 2014-02-12 20:40:02 +01:00
parent 50eeace70b
commit 56c2d62e5e

View File

@ -154,7 +154,7 @@ public final class ProcessTools {
if (addTestVmOptions) {
String vmopts = System.getProperty("test.vm.opts");
if (vmopts != null) {
if (vmopts != null && vmopts.length() > 0) {
Collections.addAll(args, vmopts.split("\\s"));
}
}