Fix Version/s: 14
Compatibility Risk Description:The change will align the Zip FS behavior with the expected IOException thrown when the file does not exist and is not being created.
Given support for Zip FS is new as of JDK 9, we do not believe there is a huge compatibility risk
Interface Kind:Java API
java.nio.file.FileSystems.newFileSystem(Path) to create a Zip file system throws
FileSystemNotFoundException instead of
IOException when the Zip or JAR file does exist (the
create option is not specified).
Since the original Zip FS prototype in JDK 7, the Zip FS incorrectly throws
FileSystemNotFoundException when the specified Zip or JAR does not exist and is not being created.
Zip FS will throw a
NoSuchFileException, which is a subclass of IOException, if the file does not exist and is not being created.
There is no change required to the specification.