8144692: HttpServer API: use of non-existant method in example in package Javadoc
Reviewed-by: chegar, prappo
--- 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();