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

Daniel Fuchs dfuchs at openjdk.org
Mon May 22 18:03:51 UTC 2023


On Mon, 22 May 2023 17:54:02 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>>> has this comment
>> 
>> Interesting. And yet that does not appear to be true in `master`: `getContentType` and `getContentLength` will return whatever was in effect at the time `initializeHeaders()` was first called, which may have been before any explicit call to `connect()`, or hours after an explicit call.
>
> Ah! It's true only if the first time connect is called, it's implicitly by `initializeHeaders()` (sigh)...

@Michael-Mc-Mahon what do you think?

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

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


More information about the net-dev mailing list