On Thu, 3 Jun 2021 17:58:45 GMT, Daniel Fuchs <[email protected]> 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