RFR: 8267485: Remove the dependency on SecurityManager in JceSecurityManager.java [v3]
Bradford Wetmore
wetmore at openjdk.java.net
Thu Jun 3 20:51:57 UTC 2021
On Thu, 3 Jun 2021 17:58:45 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Unfortunately, we are still calling AccessController, thus the annotation needs to remain.
>
> But if you follow my suggestion you can simply apply it to this line:
>
>
> @SuppressWarnings("removal")
> final List<StackFrame> stack = AccessController.doPrivileged(pa).walk(Stream::toList);
For the static initializer that needs updating: I could move the code out of the initializer up to the declaration, or I could create a dummy declaration and then assign to INSTANCE.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4150
More information about the security-dev
mailing list