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 an `accessMode` environmental parameter with values `readOnly` and `readWrite` would permit an easy way for users to control how they access ZIP/JAR files.
Adding an `accessMode` environmental parameter with values `readOnly` and `readWrite` would permit an easy way for users to control how they access ZIP/JAR files.
- 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
-
- Closed
-