> Adding read-only support to ZipFileSystem. > > The new `accessMode` environment property allows for readOnly and readWrite > values, and ensures that the requested mode is consistent with what's > returned. > > This involved a little refactoring to ensure that "read only" state was set > initially and only unset at the end of initialization if appropriate. > > By making 2 methods return values (rather than silently set non-final fields > as a side effect) it's now clear in what order fields are initialized and > which are final (sadly there are still non-final fields, but only a split of > this class into two types can fix that, since determining multi-jar support > requires reading the file system).
David Beaumont has updated the pull request incrementally with one additional commit since the last revision: Changes based on review feedback. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/25178/files - new: https://git.openjdk.org/jdk/pull/25178/files/2326999b..a82e4019 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=25178&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25178&range=03-04 Stats: 65 lines in 4 files changed: 35 ins; 7 del; 23 mod Patch: https://git.openjdk.org/jdk/pull/25178.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25178/head:pull/25178 PR: https://git.openjdk.org/jdk/pull/25178