RFR: 8344078: Remove security manager dependency in java.nio [v3]
Alan Bateman
alanb at openjdk.org
Sat Nov 16 09:02:55 UTC 2024
On Sat, 16 Nov 2024 00:33:13 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Expunge the use of the `SecurityManager`, `AccessController`, and the like from the `java.nio` and `sun.nio` package hierarchies.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8344078: Address reviewer comments
src/java.base/share/classes/java/nio/file/FileTreeWalker.java line 205:
> 203: {
> 204: // if attributes are cached then use them if possible
> 205: if (canUseCached && (file instanceof BasicFileAttributesHolder)) {
Maybe you don't want to do it in this PR but this can use pattern matching and avoid casting to BasicFileAttribtuesHolder.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22132#discussion_r1844940622
More information about the nio-dev
mailing list