mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-12 19:35:24 +00:00
8048687: [TESTBUG] com/sun/jdi/ExclusiveBind.java "Could not find or load main class"
Reviewed-by: jbachorik, egahlin, dholmes
This commit is contained in:
parent
f2399d7d54
commit
4b31ce4a17
@ -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) {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user