RFR (12): 8191053: Provide a mechanism to make system's security manager immutable

Weijun Wang weijun.wang at oracle.com
Fri Sep 14 03:01:31 UTC 2018



> On Sep 14, 2018, at 4:02 AM, Sean Mullan <sean.mullan at oracle.com> wrote:
> 
> webrev: http://cr.openjdk.java.net/~mullan/webrevs/8191053/webrev.00/

     public static SecurityManager getSecurityManager() {
+        if (allowSecurityManager()) {
         return security;
+        } else {
+            return null;
+        }
     }

Is this change really necessary? You have to call a method here.

> CSR: https://bugs.openjdk.java.net/browse/JDK-8203316

Still having @Deprecated(since="11").

Thanks
Max





More information about the security-dev mailing list