JDK-8225507 - ZipFileSystem swallows IOExceptions
Jaikiran Pai
jai.forums2013 at gmail.com
Fri Jan 31 06:34:30 UTC 2020
Hello Alan,
On 30/01/20 8:15 pm, Alan Bateman wrote:
> 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.
Thank you for this input. I have done a bit more detailed analysis of
this and opened an official RFR thread here
https://mail.openjdk.java.net/pipermail/nio-dev/2020-January/007017.html
-Jaikiran
More information about the nio-dev
mailing list