Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8266459: Implement JEP 411: Deprecate the Security Manager for Removal #4073

Closed
wants to merge 14 commits into from
Closed
@@ -1089,7 +1089,6 @@ public void checkMulticast(InetAddress maddr) {
* @throws NullPointerException if the address argument is
* {@code null}.
* @since 1.1
* @deprecated Use #checkPermission(java.security.Permission) instead
* @see #checkPermission(java.security.Permission) checkPermission
*/
@Deprecated(since="1.4", forRemoval=true)
@@ -446,7 +446,8 @@ public static <T> T doPrivileged(PrivilegedAction<T> action,
*/
@CallerSensitive
public static <T> T doPrivileged(PrivilegedAction<T> action,
@SuppressWarnings("removal") AccessControlContext context, Permission... perms) {
@SuppressWarnings("removal") AccessControlContext context,
Permission... perms) {

@SuppressWarnings("removal")
AccessControlContext parent = getContext();
@@ -511,7 +512,8 @@ public static <T> T doPrivileged(PrivilegedAction<T> action,
*/
@CallerSensitive
public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action,
@SuppressWarnings("removal") AccessControlContext context, Permission... perms) {
@SuppressWarnings("removal") AccessControlContext context,
Permission... perms) {

@SuppressWarnings("removal")
AccessControlContext parent = getContext();
@@ -874,7 +876,8 @@ private static PrivilegedActionException wrapException(Exception e) {
*/
@CallerSensitive
public static <T> T doPrivileged(PrivilegedExceptionAction<T> action,
@SuppressWarnings("removal") AccessControlContext context, Permission... perms)
@SuppressWarnings("removal") AccessControlContext context,
Permission... perms)
throws PrivilegedActionException
{
@SuppressWarnings("removal")
@@ -73,7 +73,8 @@ private static JRSUIConstants.Size getSizeFromString(final String name) {

private static Size getDefaultSize() {
@SuppressWarnings("removal")
final String sizeProperty = AccessController.doPrivileged(new GetPropertyAction(SYSTEM_PROPERTY_KEY));
final String sizeProperty = AccessController.doPrivileged(
new GetPropertyAction(SYSTEM_PROPERTY_KEY));
final JRSUIConstants.Size size = getSizeFromString(sizeProperty);
if (size != null) return size;
return JRSUIConstants.Size.REGULAR;