You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ManifestVersionReader leaks a ZipFile Inflater per JAR (openStream never closed) #6120
ManifestVersionReader.readManifestFiles() enumerates every META-INF/MANIFEST.MF on the classpath and passes URL.openStream() into new Manifest(InputStream)without closing the stream.
java.util.jar.Manifest(InputStream) reads the stream and does not close it. For jar: URLs that stream is a ZipFileInflaterInputStream. Closing it is what calls ZipFile$CleanableResource.releaseInflater(). If it is never closed, each JAR leaves a live java.util.zip.Inflater (~64 KiB zlib window).
Activity
linear-code commentedon Sep 16, 2026
JAVA-730
0xadam-brown commentedon Sep 16, 2026
@Khang-NT – thanks for raising this. Definitely looks like a bug, so we'll take a look.
adinauer commentedon Sep 17, 2026
Thanks for reporting @Khang-NT . I've opened a PR to fix this.
chore(core): Clarify manifest resource handling
0xadam-brown commentedon Sep 18, 2026
Fixed in #6124.