RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v4]

Roger Riggs rriggs at openjdk.org
Tue Jun 24 16:18:35 UTC 2025


On Tue, 24 Jun 2025 15:48:58 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Roger suggested I add the catch for the `UncheckedIOException` because of it. Maybe chat with him to see if this could somehow end up seeing an ExplodedImage build?
>
> @RogerRiggs The jrt protocol handler is for images builds. Any attempt, in exploded build, to connect to a jrt resource will blow up as ImageReaderFactory.getImageReader fails.

Right, it would never occur. Remove as unnecessary.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25871#discussion_r2164425541


More information about the net-dev mailing list