RFR: 8344078: Remove security manager dependency in java.nio
Alan Bateman
alanb at openjdk.org
Fri Nov 15 08:28:01 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.
src/java.base/share/classes/sun/nio/fs/PollingWatchService.java line 131:
> 129: throw new ClosedWatchServiceException();
> 130:
> 131: return doPrivilegedRegister(path, eventSet);
We can collapse this, no need for doPrivilegedRegister now.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22132#discussion_r1843369329
More information about the nio-dev
mailing list