RFR: 8267485: Remove the dependency on SecurityManager in JceSecurityManager.java [v3]

Sean Mullan mullan at openjdk.java.net
Thu Jun 3 21:43:56 UTC 2021


On Thu, 3 Jun 2021 20:49:27 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:

>> 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.

The latter is probably better so you don't have to move the code; @wangweij used this technique quite a bit for JEP 411 refactoring, see https://github.com/openjdk/jdk/commit/508cec7535cd0ad015d566389bc9e5f53ce4103b

-------------

PR: https://git.openjdk.java.net/jdk/pull/4150



More information about the security-dev mailing list