mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-01 22:18:23 +00:00
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:
parent
50eeace70b
commit
56c2d62e5e
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user