com/sun/jdi/JdwpAttachTest.java incorrectly reports the case when successful attach is expected, but some error occurs:
if (expectedResult) {
log("OK: attached as expected");
} else {
throw new RuntimeException("ERROR: LingeredApp.startApp was able to attach"); <== the attach is actually failed
}
if (expectedResult) {
log("OK: attached as expected");
} else {
throw new RuntimeException("ERROR: LingeredApp.startApp was able to attach"); <== the attach is actually failed
}