RFR: 8361337: java/net/URLPermission/nstest/LookupTest.java should open connections with NO_PROXY

Daniel Fuchs dfuchs at openjdk.org
Fri Jul 4 07:45:39 UTC 2025


On Thu, 3 Jul 2025 20:25:13 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

> Explicitly use `NO_PROXY` in `LookupTest` to avoid test failures on environments where proxy is configured. Updated test run results on various platforms are attached to the ticket.

Sorry about that.  It looks like we can withdraw this PR and close this bug as a duplicate of [JDK-8166359](https://bugs.openjdk.org/browse/JDK-8166359).  The failure I observed which prompted me to look at this test was actually observed on JDK 8. When I looked at this test in mainline, I looked at the call that calls URL.openConnection() and at the main method - I didn't see the line that sets the default ProxySelector to null in the test method, and assume the fix was needed in mainline too. But it appears that it's already fixed.

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

PR Comment: https://git.openjdk.org/jdk/pull/26120#issuecomment-3034855970


More information about the net-dev mailing list