class jdk.dynalink.beans.CheckRestrictedPackage
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.dynalink.beans.CheckRestrictedPackage
super_class: java.lang.Object
{
private static final java.security.AccessControlContext NO_PERMISSIONS_CONTEXT;
descriptor: Ljava/security/AccessControlContext;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.dynalink.internal.AccessControlContextFactory.createAccessControlContext:()Ljava/security/AccessControlContext;
1: putstatic jdk.dynalink.beans.CheckRestrictedPackage.NO_PERMISSIONS_CONTEXT:Ljava/security/AccessControlContext;
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/dynalink/beans/CheckRestrictedPackage;
static boolean isRestrictedClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 1
start local 1 3: aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 4: iload 2
iconst_m1
if_icmpne 6
5: iconst_0
ireturn
6: StackMap locals: java.lang.String int
StackMap stack:
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 7: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 4
start local 4 8: aload 4
ifnull 10
aload 4
aload 3
invokevirtual java.lang.Module.isExported:(Ljava/lang/String;)Z
ifne 10
9: iconst_1
ireturn
10: StackMap locals: java.lang.String java.lang.Module
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 5
start local 5 11: aload 5
ifnonnull 13
12: iconst_0
ireturn
13: StackMap locals: java.lang.SecurityManager
StackMap stack:
new jdk.dynalink.beans.CheckRestrictedPackage$1
dup
aload 5
aload 3
invokespecial jdk.dynalink.beans.CheckRestrictedPackage$1.<init>:(Ljava/lang/SecurityManager;Ljava/lang/String;)V
14: getstatic jdk.dynalink.beans.CheckRestrictedPackage.NO_PERMISSIONS_CONTEXT:Ljava/security/AccessControlContext;
15: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
pop
16: goto 19
StackMap locals:
StackMap stack: java.lang.SecurityException
17: pop
18: iconst_1
ireturn
19: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 clazz Ljava/lang/Class<*>;
3 20 1 name Ljava/lang/String;
4 20 2 i I
7 20 3 pkgName Ljava/lang/String;
8 20 4 module Ljava/lang/Module;
11 20 5 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
13 16 17 Class java.lang.SecurityException
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz final
}
SourceFile: "CheckRestrictedPackage.java"
NestMembers:
jdk.dynalink.beans.CheckRestrictedPackage$1
InnerClasses:
jdk.dynalink.beans.CheckRestrictedPackage$1