RFR: 8367114: Update jdk.test.lib.net.SimpleHttpServer to use SimpleFileServer

Daniel Fuchs dfuchs at openjdk.org
Fri Oct 3 10:08:48 UTC 2025


On Thu, 2 Oct 2025 13:12:07 GMT, Mahendra Chhipa <mchhipa at openjdk.org> wrote:

> Update SimpleHttpServer class to use SimpleFileServer.

The SimpleHttpServer class that Mahendra is updating is used by multi-relase jars and  jaxp catalog tests. It could be prudent to update the class first, check that everything remains stable, and then replace usage in a followup issue.
It seems this class is only being used by three tests however - so maybe updating those three tests to use the SimpleFileServer directly won't be too bad. 
If we do that then make sure we keep the same behaviour = keep the executor as @jaikiran suggested.

Good find about `test/jdk/com/sun/net/httpserver/SimpleFileServer.java` - let's attempt to remove it - it does not appear to be used anywhere.

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

PR Comment: https://git.openjdk.org/jdk/pull/27608#issuecomment-3365124225


More information about the net-dev mailing list