jdk.nio.zipfs.ZipFileSystem does not currently support a way to explicitly ask for a read-only file system. You will sometimes be given a read-only file system (e.g. when the JAR source is multi-release) but you cannot force this to occur.
Adding a "readOnly" boolean environmental parameter would permit an easy way for users to achieve read-only ZIP/JAR file access.
Adding a "readOnly" boolean environmental parameter would permit an easy way for users to achieve read-only ZIP/JAR file access.
- csr for
-
JDK-8350881 Read-only Zip file systems should be supported
-
- Draft
-
- relates to
-
JDK-8350492 javac shouldn't silently change .jar files on the classpath
-
- Provisional
-