RFR: JDK-6956385: URLConnection.getLastModified() leaks file handles for jar:file and file: URLs

Daniel Fuchs dfuchs at openjdk.org
Fri May 19 14:09:50 UTC 2023


On Fri, 19 May 2023 13:56:44 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> On the other hand IIRC the `file:` protocol handler cannot be overridden - so I'm not sure whether we could actually have a custom underlying `URLConnection` - that would need to be carefully evaluated.

Strike that. We could have of course a `jar:http://...` URL so the underlying connection is not necessarily a file connection and therefore can come from a custom protocol handler. So a CSR would definitely be needed if we started calling close() on custom URLConnections.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/12871#discussion_r1199001292


More information about the net-dev mailing list