8144692: HttpServer API: use of non-existant method in example in package Javadoc
authorvtewari
Fri, 15 Jul 2016 13:59:03 +0530
changeset 39654 c27372cfdb3f
parent 39653 e924cc953cdc
child 39655 909e84883de9
8144692: HttpServer API: use of non-existant method in example in package Javadoc Reviewed-by: chegar, prappo
jdk/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java
--- a/jdk/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java	Fri Jul 15 14:06:50 2016 +0530
+++ b/jdk/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java	Fri Jul 15 13:59:03 2016 +0530
@@ -54,7 +54,7 @@
    }
    ...
 
-   HttpServer server = HttpServer.create(new InetSocketAddress(8000));
+   HttpServer server = HttpServer.create(new InetSocketAddress(8000), 0);
    server.createContext("/applications/myapp", new MyHandler());
    server.setExecutor(null); // creates a default executor
    server.start();