RFR: 8344078: Remove security manager dependency in java.nio
Alan Bateman
alanb at openjdk.org
Fri Nov 15 09:11:21 UTC 2024
On Fri, 15 Nov 2024 05:37:43 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.
There is a lot of changes in this PR, covering several areas. Overall a good cleanup. I spotted a number of things going through this, hopefully my comments are clear.
src/java.base/windows/classes/sun/nio/fs/WindowsFileSystem.java line 107:
> 105: ArrayList<Path> result = new ArrayList<>();
> 106: @SuppressWarnings("removal")
> 107: SecurityManager sm = System.getSecurityManager();
"ignoring those that the security manager denies" can be removed from the method description.
-------------
PR Review: https://git.openjdk.org/jdk/pull/22132#pullrequestreview-2438039750
PR Review Comment: https://git.openjdk.org/jdk/pull/22132#discussion_r1843422786
More information about the nio-dev
mailing list