mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8344397: Remove Security Manager dependencies from java.security and sun.security packages
Reviewed-by: rriggs, hchao, weijun, alanb
This commit is contained in:
parent
3d0d0e6290
commit
940aa7c4cf
45 changed files with 406 additions and 1436 deletions
|
@ -53,6 +53,7 @@ import java.lang.reflect.Type;
|
|||
import java.lang.reflect.TypeVariable;
|
||||
import java.lang.constant.Constable;
|
||||
import java.net.URL;
|
||||
import java.security.AllPermission;
|
||||
import java.security.Permissions;
|
||||
import java.security.ProtectionDomain;
|
||||
import java.util.ArrayList;
|
||||
|
@ -89,7 +90,6 @@ import sun.reflect.generics.repository.ClassRepository;
|
|||
import sun.reflect.generics.repository.MethodRepository;
|
||||
import sun.reflect.generics.repository.ConstructorRepository;
|
||||
import sun.reflect.generics.scope.ClassScope;
|
||||
import sun.security.util.SecurityConstants;
|
||||
import sun.reflect.annotation.*;
|
||||
import sun.reflect.misc.ReflectUtil;
|
||||
|
||||
|
@ -2720,7 +2720,7 @@ public final class Class<T> implements java.io.Serializable,
|
|||
private static final ProtectionDomain allPermDomain;
|
||||
static {
|
||||
Permissions perms = new Permissions();
|
||||
perms.add(SecurityConstants.ALL_PERMISSION);
|
||||
perms.add(new AllPermission());
|
||||
allPermDomain = new ProtectionDomain(null, perms);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue