changeset 39654:c27372cfdb3f

8144692: HttpServer API: use of non-existant method in example in package Javadoc Reviewed-by: chegar, prappo
author vtewari
date Fri, 15 Jul 2016 13:59:03 +0530
parents e924cc953cdc
children 909e84883de9
files jdk/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();