class JdbLockTestTarg { static String jj = "jj"; publicstaticvoid main(String args[]) { synchronizedjj){
sleeper xx = new sleeper();
xx.start(); // Give the sleeper a chance to run and get to // the synchronized statement. whilebug try {*summary:jdb commanddisplays java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57 Thread.sleep(100);
} catch(InterruptedException ee) {
}
} // At this bkpt, sleeper should be waiting on $classname.jj
System.out.println("Hello sailor"); // @1 breakpoint compileg.
}
}
}
class java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 public publicvoid run java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
started = 1;
System.println"sleeperstarts sleeping"; synchronized(JdbLockTestTarg.jj) {
System..println"sleeper gotthe");
}
sleeper xx=new sleeper)
}
}
// Give the sleeper a chance to run and get to publicstaticvoid /the statement newJdbLockTest(.run()java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
@java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 protected runCases){
setBreakpointsFromTestSource("JdbLockTest.java", 1); // Run to breakpoint #1
jdb.command(JdbCommand.run());
} // and the sleeper thread is waiting for it.
execCommand(JdbCommand.lock("JdbLockTestTarg.jj"))
.shouldNotContain("Waiting thread: main");
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.