JDK-8225507 - ZipFileSystem swallows IOExceptions

Alan Bateman Alan.Bateman at oracle.com
Thu Jan 30 14:45:53 UTC 2020

On 30/01/2020 14:15, Jaikiran Pai wrote:
> In context of https://bugs.openjdk.java.net/browse/JDK-8225507
> As noted by the reporter in that issue, it appears that there are couple
> of places in jdk.nio.zipfs.ZipFileSystem#sync (private method) where
> IOException(s) are caught and swallowed (like here[1]) without being
> propagated back. The comment on those lines seems to state that it's
> intentional, but looking at the history of that code, it appears to have
> been there since the beginning.
This need careful examination. The zipfs provider has its roots as a 
demo to exercise the file system provider mechanism and it's possible 
that these issues date back to then.


More information about the nio-dev mailing list