RFR: 8316882: Do not close ZipFileSystem on interrupt
Technici4n
duke at openjdk.org
Sun Jul 21 13:34:05 UTC 2024
Hi,
Here is a fix for https://bugs.openjdk.org/browse/JDK-8316882, following the `FileChannelImpl#setUninterruptible` pattern used in `Files.readAllBytes` for example.
There has been some discussion on nio-dev about more broadly rethinking the interrupt handling for `FileChannels`, for example by adding a new open option. This PR is just meant to fix the ZipFS issue in the meanwhile. (Maybe I will tackle the more general issue?). [1] [2]
[1]: https://mail.openjdk.org/pipermail/nio-dev/2018-February/004756.html
[2]: https://mail.openjdk.org/pipermail/nio-dev/2024-April/016147.html
-------------
Commit messages:
- 8316882: Do not close ZipFileSystem on interrupt
Changes: https://git.openjdk.org/jdk/pull/20274/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20274&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8316882
Stats: 69 lines in 4 files changed: 68 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/20274.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20274/head:pull/20274
PR: https://git.openjdk.org/jdk/pull/20274
More information about the core-libs-dev
mailing list