8048687: [TESTBUG] com/sun/jdi/ExclusiveBind.java "Could not find or load main class"

Reviewed-by: jbachorik, egahlin, dholmes
This commit is contained in:
Staffan Larsen 2014-07-01 10:40:14 +02:00
parent f2399d7d54
commit 4b31ce4a17
2 changed files with 7 additions and 5 deletions

View File

@ -68,7 +68,9 @@ public class ExclusiveBind {
private static ProcessBuilder prepareLauncher(String address, boolean suspend, String class_name) throws Exception {
List<String> args = new ArrayList<>();
for(String dbgOption : VMConnection.getDebuggeeVMOptions().split(" ")) {
args.add(dbgOption);
if (!dbgOption.trim().isEmpty()) {
args.add(dbgOption);
}
}
String lib = "-agentlib:jdwp=transport=dt_socket,server=y,suspend=";
if (suspend) {

View File

@ -59,13 +59,13 @@ class VMConnection {
retVal += "-classpath " + testClasses;
String vmOpts = System.getProperty("test.vm.opts");
System.out.println("vmOpts: "+vmOpts);
if (vmOpts != null) {
System.out.println("vmOpts: '" + vmOpts + "'");
if (vmOpts != null && !vmOpts.trim().isEmpty()) {
retVal += " " + vmOpts;
}
String javaOpts = System.getProperty("test.java.opts");
System.out.println("javaOpts: "+javaOpts);
if (javaOpts != null) {
System.out.println("javaOpts: '" + javaOpts + "'");
if (javaOpts != null && !javaOpts.trim().isEmpty()) {
retVal += " " + javaOpts;
}