On Fri, 2 Jul 2021 11:56:04 GMT, Julia Boes <jb...@openjdk.org> wrote:

> `com.sun.net.httpserver.HttpServer::createContext` specifies 
> `IllegalArgumentException` to be thrown if a context already exists for the 
> path provided. The implementation class`sun.net.httpserver.ServerImpl` does 
> not comply with this, which is fixed by this change.
> 
> Testing: Tier 1-3 all clear.

src/jdk.httpserver/share/classes/sun/net/httpserver/ContextList.java line 32:

> 30: class ContextList {
> 31: 
> 32:     final static int MAX_CONTEXTS = 50;

@Michael-Mc-Mahon `MAX_CONTEXTS` is not used anywhere, can it be removed?

-------------

PR: https://git.openjdk.java.net/jdk/pull/4665

Reply via email to