RFR 8223771: (zipfs) FileSystemProvider.newFileSystem(Path, Map) should throw IOException when called with a file that cannot be open

Lance Andersen lance.andersen at oracle.com
Wed Oct 2 16:45:32 UTC 2019


Hi all,

Please review a proposed fix to address that Zip FS does not throw an IOException if the file cannot be opened and is not being created.  Zip FS has always thrown FileSystemAlreadyExistsException.

As part of the proposed fix, I added a flag, jdk.nio.zipfs.useFileSystemNotFoundException, to allow for FileSystemAlreadyExistsException to still be thrown if needed.

The bug can be found: https://bugs.openjdk.java.net/browse/JDK-8223771 <https://bugs.openjdk.java.net/browse/JDK-8223771>

The CSR which is currently in draft form can be found at: https://bugs.openjdk.java.net/browse/JDK-8231267 <https://bugs.openjdk.java.net/browse/JDK-8231267>

The webrev can be found at:  http://cr.openjdk.java.net/~lancea/8223771/webrev.00/index.html <http://cr.openjdk.java.net/~lancea/8223771/webrev.00/index.html>

Best
Lance

 <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191002/07b4658f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oracle_sig_logo.gif
Type: image/gif
Size: 658 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191002/07b4658f/oracle_sig_logo.gif>


More information about the nio-dev mailing list