RFR: 8266459: Implement JEP 411: Deprecate the Security Manager for Removal
Weijun Wang
weijun at openjdk.java.net
Tue May 18 21:13:40 UTC 2021
On Tue, 18 May 2021 18:38:52 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> src/java.base/share/classes/java/security/AccessController.java line 877:
>>
>>> 875: @CallerSensitive
>>> 876: public static <T> T doPrivileged(PrivilegedExceptionAction<T> action,
>>> 877: @SuppressWarnings("removal") AccessControlContext context, Permission... perms)
>>
>> you might find it easier if you put the Permissions parameter on a new line. There are several places in AccessController where the same thing happens.
>
> I'll try to update my auto-annotating program.
Turns out this only happens in this class:
$ rg '^\s*@SuppressWarnings("removal").*?,.'
src/java.base/share/classes/java/security/AccessController.java:449: @SuppressWarnings("removal") AccessControlContext context, Permission... perms) {
src/java.base/share/classes/java/security/AccessController.java:514: @SuppressWarnings("removal") AccessControlContext context, Permission... perms) {
src/java.base/share/classes/java/security/AccessController.java:877: @SuppressWarnings("removal") AccessControlContext context, Permission... perms)
I'll fix them manually.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4073
More information about the security-dev
mailing list