8235530: Removed duplicated threadByName methods in nsk/jdi tests
Reviewed-by: dholmes, sspitsyn
This commit is contained in:
parent
589f23568a
commit
dc0cc5520c
@ -142,13 +142,6 @@ public class booleantype001 {
|
||||
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +285,7 @@ public class booleantype001 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
bpRequest = settingBreakpoint(threadByName("main"),
|
||||
bpRequest = settingBreakpoint(debuggee.threadByNameOrThrow("main"),
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
bpRequest.enable();
|
||||
@ -347,20 +340,6 @@ public class booleantype001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -155,12 +155,6 @@ public class instancefilter002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -310,7 +304,7 @@ public class instancefilter002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -419,20 +413,6 @@ public class instancefilter002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -150,12 +150,6 @@ public class instancefilter003 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -298,7 +292,7 @@ public class instancefilter003 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -386,20 +380,6 @@ public class instancefilter003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -156,12 +156,6 @@ public class threadfilter002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -304,7 +298,7 @@ public class threadfilter002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -405,19 +399,6 @@ public class threadfilter002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -156,12 +156,6 @@ public class threadfilter003 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -285,7 +279,7 @@ public class threadfilter003 {
|
||||
eventRManager = vm.eventRequestManager();
|
||||
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
cpRequest.setSuspendPolicy( EventRequest.SUSPEND_EVENT_THREAD);
|
||||
cpRequest.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
|
||||
cpRequest.addClassFilter(debuggeeName);
|
||||
|
||||
cpRequest.enable();
|
||||
@ -297,21 +291,21 @@ public class threadfilter003 {
|
||||
debuggeeClass = event.referenceType();
|
||||
|
||||
if (!debuggeeClass.name().equals(debuggeeName))
|
||||
throw new JDITestRuntimeException("** Unexpected ClassName for ClassPrepareEvent **");
|
||||
throw new JDITestRuntimeException("** Unexpected ClassName for ClassPrepareEvent **");
|
||||
|
||||
log2(" received: ClassPrepareEvent for debuggeeClass");
|
||||
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
bpRequest.enable();
|
||||
|
||||
//------------------------------------------------------ testing section
|
||||
//------------------------------------------------------ testing section
|
||||
|
||||
log1(" TESTING BEGINS");
|
||||
|
||||
@ -319,8 +313,8 @@ public class threadfilter003 {
|
||||
EventRequest eventRequest2 = null;
|
||||
EventRequest eventRequest3 = null;
|
||||
|
||||
ThreadReference thread1 = null;
|
||||
String thread1Name = "thread1";
|
||||
ThreadReference thread1 = null;
|
||||
String thread1Name = "thread1";
|
||||
|
||||
String property1 = "BreakpointRequest1";
|
||||
String property2 = "BreakpointRequest2";
|
||||
@ -337,7 +331,7 @@ public class threadfilter003 {
|
||||
breakpointForCommunication();
|
||||
|
||||
int instruction = ((IntegerValue)
|
||||
(debuggeeClass.getValue(debuggeeClass.fieldByName("instruction")))).value();
|
||||
(debuggeeClass.getValue(debuggeeClass.fieldByName("instruction")))).value();
|
||||
|
||||
if (instruction == 0) {
|
||||
vm.resume();
|
||||
@ -350,63 +344,63 @@ public class threadfilter003 {
|
||||
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
testClassReference =
|
||||
case 0:
|
||||
testClassReference =
|
||||
(ReferenceType) vm.classesByName(testedClassName).get(0);
|
||||
|
||||
thread1 = (ThreadReference) debuggeeClass.getValue(
|
||||
debuggeeClass.fieldByName(thread1Name));
|
||||
thread1 = (ThreadReference) debuggeeClass.getValue(
|
||||
debuggeeClass.fieldByName(thread1Name));
|
||||
|
||||
eventRequest1 = setting2BreakpointRequest (null,
|
||||
testClassReference, methodName, bpLineName,
|
||||
EventRequest.SUSPEND_NONE, property1);
|
||||
eventRequest1 = setting2BreakpointRequest(null,
|
||||
testClassReference, methodName, bpLineName,
|
||||
EventRequest.SUSPEND_NONE, property1);
|
||||
|
||||
try {
|
||||
log2("......eventRequest1.addThreadFilter(thread1);");
|
||||
log2(" no Exception expected");
|
||||
((BreakpointRequest)eventRequest1).addThreadFilter(thread1);
|
||||
log2(" no Exception");
|
||||
} catch ( Exception e ) {
|
||||
log3("ERROR: Exception : " + e);
|
||||
testExitCode = FAILED;
|
||||
}
|
||||
try {
|
||||
log2("......eventRequest1.addThreadFilter(thread1);");
|
||||
log2(" no Exception expected");
|
||||
((BreakpointRequest) eventRequest1).addThreadFilter(thread1);
|
||||
log2(" no Exception");
|
||||
} catch (Exception e) {
|
||||
log3("ERROR: Exception : " + e);
|
||||
testExitCode = FAILED;
|
||||
}
|
||||
|
||||
break;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
eventRequest2 = setting2BreakpointRequest (null,
|
||||
testClassReference, methodName, bpLineName,
|
||||
EventRequest.SUSPEND_NONE, property2);
|
||||
case 1:
|
||||
eventRequest2 = setting2BreakpointRequest(null,
|
||||
testClassReference, methodName, bpLineName,
|
||||
EventRequest.SUSPEND_NONE, property2);
|
||||
|
||||
try {
|
||||
log2("......eventRequest2.addThreadFilter(thread1);");
|
||||
log2(" no Exception expected");
|
||||
((BreakpointRequest)eventRequest2).addThreadFilter(thread1);
|
||||
log2(" no Exception");
|
||||
} catch ( Exception e ) {
|
||||
log3("ERROR: Exception : " + e);
|
||||
testExitCode = FAILED;
|
||||
}
|
||||
break;
|
||||
try {
|
||||
log2("......eventRequest2.addThreadFilter(thread1);");
|
||||
log2(" no Exception expected");
|
||||
((BreakpointRequest) eventRequest2).addThreadFilter(thread1);
|
||||
log2(" no Exception");
|
||||
} catch (Exception e) {
|
||||
log3("ERROR: Exception : " + e);
|
||||
testExitCode = FAILED;
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
eventRequest3 = setting2BreakpointRequest (null,
|
||||
testClassReference, methodName, bpLineName,
|
||||
EventRequest.SUSPEND_NONE, property3);
|
||||
case 2:
|
||||
eventRequest3 = setting2BreakpointRequest(null,
|
||||
testClassReference, methodName, bpLineName,
|
||||
EventRequest.SUSPEND_NONE, property3);
|
||||
|
||||
try {
|
||||
log2("......eventRequest3.addThreadFilter(thread1);");
|
||||
log2(" no Exception expected");
|
||||
((BreakpointRequest)eventRequest3).addThreadFilter(thread1);
|
||||
log2(" no Exception");
|
||||
} catch ( Exception e ) {
|
||||
log3("ERROR: Exception : " + e);
|
||||
testExitCode = FAILED;
|
||||
}
|
||||
break;
|
||||
try {
|
||||
log2("......eventRequest3.addThreadFilter(thread1);");
|
||||
log2(" no Exception expected");
|
||||
((BreakpointRequest) eventRequest3).addThreadFilter(thread1);
|
||||
log2(" no Exception");
|
||||
} catch (Exception e) {
|
||||
log3("ERROR: Exception : " + e);
|
||||
testExitCode = FAILED;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new JDITestRuntimeException("** default case 2 **");
|
||||
default:
|
||||
throw new JDITestRuntimeException("** default case 2 **");
|
||||
}
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
}
|
||||
@ -414,20 +408,6 @@ public class threadfilter003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -155,12 +155,6 @@ public class location001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -303,7 +297,7 @@ public class location001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -377,20 +371,6 @@ public class location001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -143,12 +143,6 @@ public class bytetype001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class bytetype001 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
bpRequest = settingBreakpoint(threadByName("main"),
|
||||
bpRequest = settingBreakpoint(debuggee.threadByNameOrThrow("main"),
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
bpRequest.enable();
|
||||
@ -348,19 +342,6 @@ public class bytetype001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -143,12 +143,6 @@ public class chartype001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class chartype001 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
bpRequest = settingBreakpoint(threadByName("main"),
|
||||
bpRequest = settingBreakpoint(debuggee.threadByNameOrThrow("main"),
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
bpRequest.enable();
|
||||
@ -348,19 +342,6 @@ public class chartype001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -147,12 +147,6 @@ public class definedclasses001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -296,7 +290,7 @@ public class definedclasses001 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
bpRequest = settingBreakpoint(threadByName("main"),
|
||||
bpRequest = settingBreakpoint(debuggee.threadByNameOrThrow("main"),
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
bpRequest.enable();
|
||||
@ -344,20 +338,6 @@ public class definedclasses001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -160,12 +160,6 @@ public class visibleclasses001 {
|
||||
"^short(\\[\\])+", "^long(\\[\\])+", "^float(\\[\\])+", "^double(\\[\\])+"});
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -309,7 +303,7 @@ public class visibleclasses001 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
bpRequest = settingBreakpoint(threadByName("main"),
|
||||
bpRequest = settingBreakpoint(debuggee.threadByNameOrThrow("main"),
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
bpRequest.enable();
|
||||
@ -390,21 +384,6 @@ public class visibleclasses001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -151,12 +151,6 @@ public class filter003 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -300,7 +294,7 @@ public class filter003 {
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -388,20 +382,6 @@ public class filter003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -155,12 +155,6 @@ public class filter_rt002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -304,7 +298,7 @@ public class filter_rt002 {
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -395,20 +389,6 @@ public class filter_rt002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -155,12 +155,6 @@ public class filter_s002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -304,7 +298,7 @@ public class filter_s002 {
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -392,20 +386,6 @@ public class filter_s002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -350,19 +350,6 @@ public class invokemethod015 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ThreadReference threadByName(String name) throws Failure{
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread with searching for name is not found: " + name);
|
||||
}
|
||||
|
||||
private ReferenceType waitForDebuggeeClassPrepared () {
|
||||
display("Creating request for ClassPrepareEvent for debuggee.");
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
|
@ -143,12 +143,6 @@ public class doubletype001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class doubletype001 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
bpRequest = settingBreakpoint(threadByName("main"),
|
||||
bpRequest = settingBreakpoint(debuggee.threadByNameOrThrow("main"),
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
bpRequest.enable();
|
||||
@ -348,20 +342,6 @@ public class doubletype001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -168,12 +168,6 @@ public class request001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Event #:
|
||||
// 0-6 : AccessWatchpoint, ModificationWatchpoint, Breakpoint, Exception,
|
||||
@ -361,7 +355,7 @@ public class request001 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -632,20 +626,6 @@ public class request001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -168,12 +168,6 @@ public class nextevent001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
// Event #:
|
||||
// 0-6 : AccessWatchpoint, ModificationWatchpoint, Breakpoint, Exception,
|
||||
// MethodEntry, MethodExit, Step
|
||||
@ -360,7 +354,7 @@ public class nextevent001 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -620,20 +614,6 @@ public class nextevent001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -145,12 +145,6 @@ public class remove004 {
|
||||
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -297,7 +291,7 @@ public class remove004 {
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
try {
|
||||
bpRequest = settingBreakpoint(threadByName("main"),
|
||||
bpRequest = settingBreakpoint(debuggee.threadByNameOrThrow("main"),
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
} catch ( Exception e ) {
|
||||
@ -380,20 +374,6 @@ public class remove004 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -140,12 +140,6 @@ public class remove_l004 {
|
||||
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class remove_l004 {
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
try {
|
||||
bpRequest = settingBreakpoint(threadByName("main"),
|
||||
bpRequest = settingBreakpoint(debuggee.threadByNameOrThrow("main"),
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
} catch ( Exception e ) {
|
||||
@ -354,20 +348,6 @@ public class remove_l004 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -153,12 +153,6 @@ public class addcountfilter001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -301,7 +295,7 @@ public class addcountfilter001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -349,7 +343,7 @@ public class addcountfilter001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -478,20 +472,6 @@ public class addcountfilter001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -151,12 +151,6 @@ public class disable001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -299,7 +293,7 @@ public class disable001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -343,7 +337,7 @@ public class disable001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -436,20 +430,6 @@ public class disable001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -151,12 +151,6 @@ public class disable002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -299,7 +293,7 @@ public class disable002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -343,7 +337,7 @@ public class disable002 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -434,20 +428,6 @@ public class disable002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -151,12 +151,6 @@ public class enable001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -299,7 +293,7 @@ public class enable001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -343,7 +337,7 @@ public class enable001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -432,20 +426,6 @@ public class enable001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -154,12 +154,6 @@ public class enable002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -302,7 +296,7 @@ public class enable002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -346,7 +340,7 @@ public class enable002 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -450,20 +444,6 @@ public class enable002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -153,12 +153,6 @@ public class getproperty001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -301,7 +295,7 @@ public class getproperty001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -349,7 +343,7 @@ public class getproperty001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -446,20 +440,6 @@ public class getproperty001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -115,7 +115,7 @@ public class hashcode001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
ThreadReference thread = threadByName(methodName);
|
||||
ThreadReference thread = debuggee.threadByNameOrThrow(methodName);
|
||||
|
||||
display(".....setting up StepRequest");
|
||||
eventRequest = eventRequestManager.createStepRequest
|
||||
@ -224,18 +224,5 @@ public class hashcode001 {
|
||||
return method;
|
||||
}
|
||||
|
||||
static private ThreadReference threadByName(String name) {
|
||||
|
||||
List all = debuggee.VM().allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread IS NOT found : " + name);
|
||||
}
|
||||
|
||||
}
|
||||
//--------------------------------------------------------- test specific classes
|
||||
|
@ -151,12 +151,6 @@ public class isenabled001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -299,7 +293,7 @@ public class isenabled001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -343,7 +337,7 @@ public class isenabled001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -440,20 +434,6 @@ public class isenabled001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -153,12 +153,6 @@ public class putproperty001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -301,7 +295,7 @@ public class putproperty001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -349,7 +343,7 @@ public class putproperty001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -451,20 +445,6 @@ public class putproperty001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -150,12 +150,6 @@ public class setenabled001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -298,7 +292,7 @@ public class setenabled001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -342,7 +336,7 @@ public class setenabled001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -439,20 +433,6 @@ public class setenabled001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -154,12 +154,6 @@ public class setenabled002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -302,7 +296,7 @@ public class setenabled002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -346,7 +340,7 @@ public class setenabled002 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -466,20 +460,6 @@ public class setenabled002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -151,12 +151,6 @@ public class setenabled003 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -299,7 +293,7 @@ public class setenabled003 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -418,19 +412,6 @@ public class setenabled003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -155,12 +155,6 @@ public class setsuspendpolicy001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -303,7 +297,7 @@ public class setsuspendpolicy001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -351,7 +345,7 @@ public class setsuspendpolicy001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -482,20 +476,6 @@ public class setsuspendpolicy001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -150,12 +150,6 @@ public class suspendpolicy001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -298,7 +292,7 @@ public class suspendpolicy001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -346,7 +340,7 @@ public class suspendpolicy001 {
|
||||
switch (i) {
|
||||
|
||||
case 0:
|
||||
thread1 = threadByName(threadName1);
|
||||
thread1 = debuggee.threadByNameOrThrow(threadName1);
|
||||
|
||||
log2("......setting up StepRequest");
|
||||
eventRequest1 = eventRManager.createStepRequest
|
||||
@ -455,19 +449,6 @@ public class suspendpolicy001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -146,12 +146,6 @@ public class accwtchpreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -300,7 +294,7 @@ public class accwtchpreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -431,19 +425,6 @@ public class accwtchpreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -149,12 +149,6 @@ public class breakpreq002 {
|
||||
Location breakpLocation = null;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -297,7 +291,7 @@ public class breakpreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -424,20 +418,6 @@ public class breakpreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class clsprepreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class clsprepreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -424,20 +418,6 @@ public class clsprepreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class clsunlreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class clsunlreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -419,20 +413,6 @@ public class clsunlreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -149,12 +149,6 @@ public class craccwtchpreq003 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -297,7 +291,7 @@ public class craccwtchpreq003 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -381,20 +375,6 @@ public class craccwtchpreq003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -149,12 +149,6 @@ public class crbreakpreq003 {
|
||||
Location breakpLocation = null;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -297,7 +291,7 @@ public class crbreakpreq003 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -362,20 +356,6 @@ public class crbreakpreq003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -144,12 +144,6 @@ public class cpreg001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class cpreg001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -337,19 +331,6 @@ public class cpreg001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -144,12 +144,6 @@ public class cureg001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class cureg001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -337,20 +331,6 @@ public class cureg001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -147,12 +147,6 @@ public class crexreq009 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -295,7 +289,7 @@ public class crexreq009 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -361,20 +355,6 @@ public class crexreq009 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -148,12 +148,6 @@ public class crexreq010 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -296,7 +290,7 @@ public class crexreq010 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -352,20 +346,6 @@ public class crexreq010 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -144,12 +144,6 @@ public class menreg001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class menreg001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -337,20 +331,6 @@ public class menreg001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -144,12 +144,6 @@ public class mexreg001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class mexreg001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -337,19 +331,6 @@ public class mexreg001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -148,12 +148,6 @@ public class crmodwtchpreq003 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -296,7 +290,7 @@ public class crmodwtchpreq003 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -380,19 +374,6 @@ public class crmodwtchpreq003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -148,12 +148,6 @@ public class crstepreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -296,7 +290,7 @@ public class crstepreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -333,7 +327,7 @@ public class crstepreq002 {
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable part
|
||||
|
||||
thread = threadByName(threadName);
|
||||
thread = debuggee.threadByNameOrThrow(threadName);
|
||||
|
||||
if (StepRequest.STEP_MIN > StepRequest.STEP_LINE) {
|
||||
maxSize = StepRequest.STEP_MIN;
|
||||
@ -448,20 +442,6 @@ public class crstepreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -154,7 +154,7 @@ public class crstepreq003 {
|
||||
//--------------------------------------------------------- mutable common methods
|
||||
|
||||
private void execTest() {
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
/*
|
||||
BreakpointRequest bpRequest = setBreakpoint( mainThread,
|
||||
debuggeeClass,
|
||||
@ -252,7 +252,7 @@ public class crstepreq003 {
|
||||
exitCode = FAILED;
|
||||
}
|
||||
|
||||
ThreadReference thread = threadByName(threadName);
|
||||
ThreadReference thread = debuggee.threadByNameOrThrow(threadName);
|
||||
StepRequest stepRequest = setStepRequest( thread,
|
||||
StepRequest.STEP_LINE,
|
||||
stepDepth,
|
||||
@ -421,19 +421,6 @@ public class crstepreq003 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ThreadReference threadByName(String name) throws Failure{
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread with searching for name is not found: " + name);
|
||||
}
|
||||
|
||||
private ReferenceType waitForDebuggeeClassPrepared () {
|
||||
display("Creating request for ClassPrepareEvent for debuggee.");
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
|
@ -155,7 +155,7 @@ public class crstepreq004 {
|
||||
//--------------------------------------------------------- mutable common methods
|
||||
|
||||
private void execTest() {
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = setBreakpoint( mainThread,
|
||||
debuggeeClass,
|
||||
@ -247,7 +247,7 @@ public class crstepreq004 {
|
||||
exitCode = FAILED;
|
||||
}
|
||||
|
||||
ThreadReference thread = threadByName(threadName);
|
||||
ThreadReference thread = debuggee.threadByNameOrThrow(threadName);
|
||||
StepRequest stepRequest = setStepRequest( thread,
|
||||
StepRequest.STEP_LINE,
|
||||
stepDepth,
|
||||
@ -418,19 +418,6 @@ public class crstepreq004 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ThreadReference threadByName(String name) throws Failure{
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread with searching for name is not found: " + name);
|
||||
}
|
||||
|
||||
private ReferenceType waitForDebuggeeClassPrepared () {
|
||||
display("Creating request for ClassPrepareEvent for debuggee.");
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
|
@ -217,7 +217,7 @@ public class crstepreq005 {
|
||||
}
|
||||
|
||||
display("Getting mirror of thread: " + threadName);
|
||||
ThreadReference thread = threadByName(threadName);
|
||||
ThreadReference thread = debuggee.threadByNameOrThrow(threadName);
|
||||
|
||||
display("Getting ReferenceType of thread: " + threadName);
|
||||
ReferenceType debuggeeThread = debuggee.classByName(debuggeeThreadName);
|
||||
@ -441,19 +441,6 @@ public class crstepreq005 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ThreadReference threadByName(String name) throws Failure{
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread with searching for name is not found: " + name);
|
||||
}
|
||||
|
||||
private ReferenceType waitForDebuggeeClassPrepared () {
|
||||
display("Creating request for ClassPrepareEvent for debuggee.");
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
|
@ -215,7 +215,7 @@ public class crstepreq006 {
|
||||
}
|
||||
|
||||
display("Getting mirror of thread: " + threadName);
|
||||
ThreadReference thread = threadByName(threadName);
|
||||
ThreadReference thread = debuggee.threadByNameOrThrow(threadName);
|
||||
|
||||
display("Getting ReferenceType of thread: " + threadName);
|
||||
ReferenceType debuggeeThread = debuggee.classByName(debuggeeThreadName);
|
||||
@ -439,19 +439,6 @@ public class crstepreq006 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ThreadReference threadByName(String name) throws Failure{
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread with searching for name is not found: " + name);
|
||||
}
|
||||
|
||||
private ReferenceType waitForDebuggeeClassPrepared () {
|
||||
display("Creating request for ClassPrepareEvent for debuggee.");
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
|
@ -217,7 +217,7 @@ public class crstepreq007 {
|
||||
}
|
||||
|
||||
display("Getting mirror of thread: " + threadName);
|
||||
ThreadReference thread = threadByName(threadName);
|
||||
ThreadReference thread = debuggee.threadByNameOrThrow(threadName);
|
||||
|
||||
display("Getting ReferenceType of thread: " + threadName);
|
||||
ReferenceType debuggeeThread = debuggee.classByName(debuggeeThreadName);
|
||||
@ -441,19 +441,6 @@ public class crstepreq007 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ThreadReference threadByName(String name) throws Failure{
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread with searching for name is not found: " + name);
|
||||
}
|
||||
|
||||
private ReferenceType waitForDebuggeeClassPrepared () {
|
||||
display("Creating request for ClassPrepareEvent for debuggee.");
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
|
@ -217,7 +217,7 @@ public class crstepreq008 {
|
||||
}
|
||||
|
||||
display("Getting mirror of thread: " + threadName);
|
||||
ThreadReference thread = threadByName(threadName);
|
||||
ThreadReference thread = debuggee.threadByNameOrThrow(threadName);
|
||||
|
||||
display("Getting ReferenceType of thread: " + threadName);
|
||||
ReferenceType debuggeeThread = debuggee.classByName(debuggeeThreadName);
|
||||
@ -441,19 +441,6 @@ public class crstepreq008 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ThreadReference threadByName(String name) throws Failure{
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread with searching for name is not found: " + name);
|
||||
}
|
||||
|
||||
private ReferenceType waitForDebuggeeClassPrepared () {
|
||||
display("Creating request for ClassPrepareEvent for debuggee.");
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
|
@ -215,7 +215,7 @@ public class crstepreq009 {
|
||||
}
|
||||
|
||||
display("Getting mirror of thread: " + threadName);
|
||||
ThreadReference thread = threadByName(threadName);
|
||||
ThreadReference thread = debuggee.threadByNameOrThrow(threadName);
|
||||
|
||||
display("Getting ReferenceType of thread: " + threadName);
|
||||
ReferenceType debuggeeThread = debuggee.classByName(debuggeeThreadName);
|
||||
@ -439,19 +439,6 @@ public class crstepreq009 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ThreadReference threadByName(String name) throws Failure{
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread with searching for name is not found: " + name);
|
||||
}
|
||||
|
||||
private ReferenceType waitForDebuggeeClassPrepared () {
|
||||
display("Creating request for ClassPrepareEvent for debuggee.");
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
|
@ -219,7 +219,7 @@ public class crstepreq010 {
|
||||
}
|
||||
|
||||
display("Getting mirror of thread: " + threadName);
|
||||
ThreadReference thread = threadByName(threadName);
|
||||
ThreadReference thread = debuggee.threadByNameOrThrow(threadName);
|
||||
|
||||
display("Getting ReferenceType of thread: " + threadName);
|
||||
ReferenceType debuggeeThread = debuggee.classByName(debuggeeThreadName);
|
||||
@ -443,19 +443,6 @@ public class crstepreq010 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ThreadReference threadByName(String name) throws Failure{
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
while (li.hasNext()) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new Failure("Thread with searching for name is not found: " + name);
|
||||
}
|
||||
|
||||
private ReferenceType waitForDebuggeeClassPrepared () {
|
||||
display("Creating request for ClassPrepareEvent for debuggee.");
|
||||
ClassPrepareRequest cpRequest = eventRManager.createClassPrepareRequest();
|
||||
|
@ -144,12 +144,6 @@ public class tdreg001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class tdreg001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -337,20 +331,6 @@ public class tdreg001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -144,12 +144,6 @@ public class tsreg001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -292,7 +286,7 @@ public class tsreg001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -337,20 +331,6 @@ public class tsreg001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class vmdreg001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class vmdreg001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -349,20 +343,6 @@ public class vmdreg001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -148,12 +148,6 @@ public class delallbreakp002 {
|
||||
Location breakpLocation = null;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -296,7 +290,7 @@ public class delallbreakp002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -348,20 +342,6 @@ public class delallbreakp002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -154,12 +154,6 @@ public class delevtreq002 {
|
||||
Location breakpLocation = null;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -302,7 +296,7 @@ public class delevtreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -433,20 +427,6 @@ public class delevtreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -152,12 +152,6 @@ public class delevtreqs002 {
|
||||
Location breakpLocation = null;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -300,7 +294,7 @@ public class delevtreqs002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -502,20 +496,6 @@ public class delevtreqs002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class excreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class excreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -424,20 +418,6 @@ public class excreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class methentreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class methentreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -419,20 +413,6 @@ public class methentreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class methexitreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class methexitreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -419,20 +413,6 @@ public class methexitreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class modwtchpreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -300,7 +294,7 @@ public class modwtchpreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -431,20 +425,6 @@ public class modwtchpreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class stepreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class stepreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -426,20 +420,6 @@ public class stepreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class thrdeathreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class thrdeathreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -419,20 +413,6 @@ public class thrdeathreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class thrstartreq002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class thrstartreq002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -419,20 +413,6 @@ public class thrstartreq002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -146,12 +146,6 @@ public class vmdeathreq001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -294,7 +288,7 @@ public class vmdeathreq001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -419,20 +413,6 @@ public class vmdeathreq001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -144,12 +144,6 @@ public class eventiterator001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
@ -320,7 +314,7 @@ public class eventiterator001 {
|
||||
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
BreakpointRequest bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -367,20 +361,6 @@ public class eventiterator001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -150,12 +150,6 @@ public class eventiterator002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -309,7 +303,7 @@ public class eventiterator002 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -431,20 +425,6 @@ public class eventiterator002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -151,12 +151,6 @@ public class eventiterator003 {
|
||||
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis(String argv[], PrintStream out) {
|
||||
@ -311,7 +305,7 @@ public class eventiterator003 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
bpRequest = settingBreakpoint(mainThread, debuggeeClass, bPointMethod, lineForComm, "zero");
|
||||
bpRequest.enable();
|
||||
@ -392,19 +386,6 @@ public class eventiterator003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name) throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext();) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -138,12 +138,6 @@ public class eventiterator004 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
// Event #:
|
||||
// 0-6 : AccessWatchpoint, ModificationWatchpoint, Breakpoint, Exception,
|
||||
// MethodEntry, MethodExit, Step
|
||||
@ -330,7 +324,7 @@ public class eventiterator004 {
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
@ -363,20 +357,6 @@ public class eventiterator004 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -158,12 +158,6 @@ public class resume002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -313,7 +307,7 @@ public class resume002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -510,20 +504,6 @@ public class resume002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -158,12 +158,6 @@ public class resume003 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -313,7 +307,7 @@ public class resume003 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -511,20 +505,6 @@ public class resume003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -158,12 +158,6 @@ public class resume004 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -306,7 +300,7 @@ public class resume004 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -504,20 +498,6 @@ public class resume004 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -158,12 +158,6 @@ public class resume005 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -306,7 +300,7 @@ public class resume005 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -504,20 +498,6 @@ public class resume005 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -158,12 +158,6 @@ public class resume006 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -306,7 +300,7 @@ public class resume006 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -502,20 +496,6 @@ public class resume006 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -158,12 +158,6 @@ public class resume007 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -306,7 +300,7 @@ public class resume007 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -501,20 +495,6 @@ public class resume007 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -158,12 +158,6 @@ public class resume010 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -306,7 +300,7 @@ public class resume010 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -499,20 +493,6 @@ public class resume010 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -142,12 +142,6 @@ public class resume011 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -307,7 +301,7 @@ public class resume011 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -344,20 +338,6 @@ public class resume011 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -143,12 +143,6 @@ public class resume012 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -308,7 +302,7 @@ public class resume012 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -345,20 +339,6 @@ public class resume012 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -143,12 +143,6 @@ public class resume013 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -308,7 +302,7 @@ public class resume013 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -344,20 +338,6 @@ public class resume013 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -153,12 +153,6 @@ public class suspendpolicy001 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -311,7 +305,7 @@ public class suspendpolicy001 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -492,20 +486,6 @@ public class suspendpolicy001 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -154,12 +154,6 @@ public class suspendpolicy002 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -312,7 +306,7 @@ public class suspendpolicy002 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -487,20 +481,6 @@ public class suspendpolicy002 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -154,12 +154,6 @@ public class suspendpolicy003 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -318,7 +312,7 @@ public class suspendpolicy003 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -494,20 +488,6 @@ public class suspendpolicy003 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -154,12 +154,6 @@ public class suspendpolicy004 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -312,7 +306,7 @@ public class suspendpolicy004 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -489,20 +483,6 @@ public class suspendpolicy004 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -154,12 +154,6 @@ public class suspendpolicy005 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -312,7 +306,7 @@ public class suspendpolicy005 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -489,20 +483,6 @@ public class suspendpolicy005 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -153,12 +153,6 @@ public class suspendpolicy006 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -311,7 +305,7 @@ public class suspendpolicy006 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -487,20 +481,6 @@ public class suspendpolicy006 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -153,12 +153,6 @@ public class suspendpolicy007 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -311,7 +305,7 @@ public class suspendpolicy007 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -486,20 +480,6 @@ public class suspendpolicy007 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -153,12 +153,6 @@ public class suspendpolicy008 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -311,7 +305,7 @@ public class suspendpolicy008 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -463,20 +457,6 @@ public class suspendpolicy008 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -153,12 +153,6 @@ public class suspendpolicy009 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -311,7 +305,7 @@ public class suspendpolicy009 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -463,20 +457,6 @@ public class suspendpolicy009 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -152,12 +152,6 @@ public class suspendpolicy010 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
|
||||
private int runThis (String argv[], PrintStream out) {
|
||||
@ -310,7 +304,7 @@ public class suspendpolicy010 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -418,20 +412,6 @@ public class suspendpolicy010 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -151,12 +151,6 @@ public class suspendpolicy011 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
int policyToCheck = 0;
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
@ -319,7 +313,7 @@ public class suspendpolicy011 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -365,20 +359,6 @@ public class suspendpolicy011 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -151,12 +151,6 @@ public class suspendpolicy012 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
int policyToCheck = 0;
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
@ -319,7 +313,7 @@ public class suspendpolicy012 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -365,20 +359,6 @@ public class suspendpolicy012 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -151,12 +151,6 @@ public class suspendpolicy013 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
int policyToCheck = 0;
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
@ -319,7 +313,7 @@ public class suspendpolicy013 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -365,20 +359,6 @@ public class suspendpolicy013 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -152,12 +152,6 @@ public class suspendpolicy014 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
int policyToCheck = 0;
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
@ -320,7 +314,7 @@ public class suspendpolicy014 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -368,20 +362,6 @@ public class suspendpolicy014 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -152,12 +152,6 @@ public class suspendpolicy015 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
int policyToCheck = 0;
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
@ -320,7 +314,7 @@ public class suspendpolicy015 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -368,20 +362,6 @@ public class suspendpolicy015 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
@ -152,12 +152,6 @@ public class suspendpolicy016 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
int policyToCheck = 0;
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
@ -320,7 +314,7 @@ public class suspendpolicy016 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -368,19 +362,6 @@ public class suspendpolicy016 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
|
@ -152,12 +152,6 @@ public class suspendpolicy017 {
|
||||
static int testExitCode = PASSED;
|
||||
|
||||
|
||||
class JDITestRuntimeException extends RuntimeException {
|
||||
JDITestRuntimeException(String str) {
|
||||
super("JDITestRuntimeException : " + str);
|
||||
}
|
||||
}
|
||||
|
||||
int policyToCheck = 0;
|
||||
|
||||
//------------------------------------------------------ methods
|
||||
@ -320,7 +314,7 @@ public class suspendpolicy017 {
|
||||
String bPointMethod = "methodForCommunication";
|
||||
String lineForComm = "lineForComm";
|
||||
BreakpointRequest bpRequest;
|
||||
ThreadReference mainThread = threadByName("main");
|
||||
ThreadReference mainThread = debuggee.threadByNameOrThrow("main");
|
||||
bpRequest = settingBreakpoint(mainThread,
|
||||
debuggeeClass,
|
||||
bPointMethod, lineForComm, "zero");
|
||||
@ -370,20 +364,6 @@ public class suspendpolicy017 {
|
||||
return;
|
||||
}
|
||||
|
||||
private ThreadReference threadByName(String name)
|
||||
throws JDITestRuntimeException {
|
||||
|
||||
List all = vm.allThreads();
|
||||
ListIterator li = all.listIterator();
|
||||
|
||||
for (; li.hasNext(); ) {
|
||||
ThreadReference thread = (ThreadReference) li.next();
|
||||
if (thread.name().equals(name))
|
||||
return thread;
|
||||
}
|
||||
throw new JDITestRuntimeException("** Thread IS NOT found ** : " + name);
|
||||
}
|
||||
|
||||
/*
|
||||
* private BreakpointRequest settingBreakpoint(ThreadReference, ReferenceType,
|
||||
* String, String, String)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user