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

Daniel Hu duke at openjdk.org
Thu Mar 27 21:31:44 UTC 2025


Clean backport. Fixes file handle leak if FileURLConnection used for JarURLConnection. Passes tier1 jtreg and the new test/jdk/sun/net/www/protocol/jar/FileURLConnectionLeak.java on linux x64.

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

Commit messages:
 - Backport 9f98136c3a00ca24d59ffefd58308603b58110c7
 - Merge branch 'openjdk:master' into 6956385
 - Backport f34f8d4d6a9b3e24a93a322b985c1413c27311cc

Changes: https://git.openjdk.org/jdk17u-dev/pull/3409/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=3409&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-6956385
  Stats: 86 lines in 3 files changed: 84 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/3409.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/3409/head:pull/3409

PR: https://git.openjdk.org/jdk17u-dev/pull/3409


More information about the jdk-updates-dev mailing list