--- old/src/java.base/share/classes/java/lang/System.java 2015-04-22 17:43:43.447422560 -0700 +++ new/src/java.base/share/classes/java/lang/System.java 2015-04-22 17:43:43.279422556 -0700 @@ -309,7 +309,7 @@ // calls the installed security manager's checkPermission method // which will loop infinitely if there is a non-system class // (in this case: the new security manager class) on the stack). - AccessController.doPrivileged(new PrivilegedAction() { + AccessController.doPrivileged(new PrivilegedAction<>() { public Object run() { s.getClass().getProtectionDomain().implies (SecurityConstants.ALL_PERMISSION);