publicstaticvoid main(String[] args) throws Exception {
System.err.println("\nRegression test for bug 4111507\n");
/* *Bindaserversockettoaport.
*/
ServerSocket server = new ServerSocket(0);
port = server.getLocalPort();
System.err.println("Created a ServerSocket on port " + port + "...");
/* *Startathreadthatcreatesaregistryonthesameport, *andanalyzetheresult.
*/
System.err.println("create a registry on the same port...");
System.err.println("(should cause an ExportException)");
AddrInUse obj = new AddrInUse(); synchronized (obj) {
(newThread(obj, "AddrInUse")).start();
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.