RFR: 8366040: Change URL.lookupViaProviders to use ScopedValue to detect recursive lookup

Alan Bateman alanb at openjdk.org
Fri Oct 3 17:22:46 UTC 2025


On Fri, 3 Oct 2025 13:14:43 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

> Replace `ThreadTracker` usage in `java.net.URL` with `ScopedValue` and add a test.

test/jdk/java/net/spi/URLStreamHandlerProvider/Basic.java line 143:

> 141:                 TEST_SRC.resolve("circular.provider.template"),
> 142:                 sysProps);
> 143:     }

I assume you've re-format the changes to Basic.java to be consistent with this existing code in the test (looks a bit strange on first sighting to see a completely different style being introduced).

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27623#discussion_r2402719125


More information about the net-dev mailing list