public class java.lang.SecurityManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.lang.SecurityManager
super_class: java.lang.Object
{
private boolean initialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static java.lang.ThreadGroup rootGroup;
descriptor: Ljava/lang/ThreadGroup;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static boolean packageAccessValid;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String[] packageAccess;
descriptor: [Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.Object packageAccessLock;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static boolean packageDefinitionValid;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String[] packageDefinition;
descriptor: [Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.Object packageDefinitionLock;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Map<java.lang.String, java.lang.Boolean> nonExportedPkgs;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Boolean;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic java.lang.SecurityManager.getRootGroup:()Ljava/lang/ThreadGroup;
putstatic java.lang.SecurityManager.rootGroup:Ljava/lang/ThreadGroup;
1: iconst_0
putstatic java.lang.SecurityManager.packageAccessValid:Z
2: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic java.lang.SecurityManager.packageAccessLock:Ljava/lang/Object;
3: iconst_0
putstatic java.lang.SecurityManager.packageDefinitionValid:Z
4: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic java.lang.SecurityManager.packageDefinitionLock:Ljava/lang/Object;
5: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putstatic java.lang.SecurityManager.nonExportedPkgs:Ljava/util/Map;
6: invokestatic java.lang.ModuleLayer.boot:()Ljava/lang/ModuleLayer;
invokestatic java.lang.SecurityManager.addNonExportedPackages:(Ljava/lang/ModuleLayer;)V
7: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield java.lang.SecurityManager.initialized:Z
2: ldc Ljava/lang/SecurityManager;
dup
astore 1
monitorenter
3: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 4: aload 2
ifnull 8
5: aload 2
new java.lang.RuntimePermission
dup
6: ldc "createSecurityManager"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
7: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
8: StackMap locals: java.lang.SecurityManager java.lang.Class java.lang.SecurityManager
StackMap stack:
aload 0
iconst_1
putfield java.lang.SecurityManager.initialized:Z
end local 2 9: aload 1
monitorexit
10: goto 13
StackMap locals: java.lang.SecurityManager java.lang.Class
StackMap stack: java.lang.Throwable
11: aload 1
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljava/lang/SecurityManager;
4 9 2 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
3 10 11 any
11 12 11 any
protected native java.lang.Class<?>[] getClassContext();
descriptor: ()[Ljava/lang/Class;
flags: (0x0104) ACC_PROTECTED, ACC_NATIVE
Signature: ()[Ljava/lang/Class<*>;
public java.lang.Object getSecurityContext();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.security.AccessController.getContext:()Ljava/security/AccessControlContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/SecurityManager;
public void checkPermission(java.security.Permission);
descriptor: (Ljava/security/Permission;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.security.AccessController.checkPermission:(Ljava/security/Permission;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/SecurityManager;
0 2 1 perm Ljava/security/Permission;
MethodParameters:
Name Flags
perm
public void checkPermission(java.security.Permission, java.lang.Object);
descriptor: (Ljava/security/Permission;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof java.security.AccessControlContext
ifeq 3
1: aload 2
checkcast java.security.AccessControlContext
aload 1
invokevirtual java.security.AccessControlContext.checkPermission:(Ljava/security/Permission;)V
2: goto 4
3: StackMap locals:
StackMap stack:
new java.lang.SecurityException
dup
invokespecial java.lang.SecurityException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/SecurityManager;
0 5 1 perm Ljava/security/Permission;
0 5 2 context Ljava/lang/Object;
MethodParameters:
Name Flags
perm
context
public void checkCreateClassLoader();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic sun.security.util.SecurityConstants.CREATE_CLASSLOADER_PERMISSION:Ljava/lang/RuntimePermission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/SecurityManager;
private static java.lang.ThreadGroup getRootGroup();
descriptor: ()Ljava/lang/ThreadGroup;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
astore 0
start local 0 1: goto 3
2: StackMap locals: java.lang.ThreadGroup
StackMap stack:
aload 0
invokevirtual java.lang.ThreadGroup.getParent:()Ljava/lang/ThreadGroup;
astore 0
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.ThreadGroup.getParent:()Ljava/lang/ThreadGroup;
ifnonnull 2
4: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 root Ljava/lang/ThreadGroup;
public void checkAccess(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "thread can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
getstatic java.lang.SecurityManager.rootGroup:Ljava/lang/ThreadGroup;
if_acmpne 4
3: aload 0
getstatic sun.security.util.SecurityConstants.MODIFY_THREAD_PERMISSION:Ljava/lang/RuntimePermission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/SecurityManager;
0 5 1 t Ljava/lang/Thread;
MethodParameters:
Name Flags
t
public void checkAccess(java.lang.ThreadGroup);
descriptor: (Ljava/lang/ThreadGroup;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "thread group can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
getstatic java.lang.SecurityManager.rootGroup:Ljava/lang/ThreadGroup;
if_acmpne 4
3: aload 0
getstatic sun.security.util.SecurityConstants.MODIFY_THREADGROUP_PERMISSION:Ljava/lang/RuntimePermission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/SecurityManager;
0 5 1 g Ljava/lang/ThreadGroup;
MethodParameters:
Name Flags
g
public void checkExit(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.RuntimePermission
dup
new java.lang.StringBuilder
dup
ldc "exitVM."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/SecurityManager;
0 2 1 status I
MethodParameters:
Name Flags
status
public void checkExec(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
invokevirtual java.io.File.isAbsolute:()Z
ifeq 6
2: aload 0
new java.io.FilePermission
dup
aload 1
3: ldc "execute"
invokespecial java.io.FilePermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
4: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
5: goto 9
6: StackMap locals: java.io.File
StackMap stack:
aload 0
new java.io.FilePermission
dup
ldc "<<ALL FILES>>"
7: ldc "execute"
invokespecial java.io.FilePermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
8: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/lang/SecurityManager;
0 10 1 cmd Ljava/lang/String;
1 10 2 f Ljava/io/File;
MethodParameters:
Name Flags
cmd
public void checkLink(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "library can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
new java.lang.RuntimePermission
dup
new java.lang.StringBuilder
dup
ldc "loadLibrary."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/SecurityManager;
0 4 1 lib Ljava/lang/String;
MethodParameters:
Name Flags
lib
public void checkRead(java.io.FileDescriptor);
descriptor: (Ljava/io/FileDescriptor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "file descriptor can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
new java.lang.RuntimePermission
dup
ldc "readFileDescriptor"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/SecurityManager;
0 4 1 fd Ljava/io/FileDescriptor;
MethodParameters:
Name Flags
fd
public void checkRead(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.io.FilePermission
dup
aload 1
1: ldc "read"
invokespecial java.io.FilePermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
2: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/SecurityManager;
0 4 1 file Ljava/lang/String;
MethodParameters:
Name Flags
file
public void checkRead(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
1: new java.io.FilePermission
dup
aload 1
ldc "read"
invokespecial java.io.FilePermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
2: aload 2
3: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;Ljava/lang/Object;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/SecurityManager;
0 5 1 file Ljava/lang/String;
0 5 2 context Ljava/lang/Object;
MethodParameters:
Name Flags
file
context
public void checkWrite(java.io.FileDescriptor);
descriptor: (Ljava/io/FileDescriptor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "file descriptor can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
new java.lang.RuntimePermission
dup
ldc "writeFileDescriptor"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/SecurityManager;
0 4 1 fd Ljava/io/FileDescriptor;
MethodParameters:
Name Flags
fd
public void checkWrite(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.io.FilePermission
dup
aload 1
1: ldc "write"
invokespecial java.io.FilePermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
2: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/SecurityManager;
0 4 1 file Ljava/lang/String;
MethodParameters:
Name Flags
file
public void checkDelete(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.io.FilePermission
dup
aload 1
1: ldc "delete"
invokespecial java.io.FilePermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
2: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/SecurityManager;
0 4 1 file Ljava/lang/String;
MethodParameters:
Name Flags
file
public void checkConnect(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "host can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 4
aload 1
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpeq 4
3: new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
4: StackMap locals:
StackMap stack:
iload 2
iconst_m1
if_icmpne 9
5: aload 0
new java.net.SocketPermission
dup
aload 1
6: ldc "resolve"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
7: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
8: goto 12
9: StackMap locals:
StackMap stack:
aload 0
new java.net.SocketPermission
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: ldc "connect"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
11: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/lang/SecurityManager;
0 13 1 host Ljava/lang/String;
0 13 2 port I
MethodParameters:
Name Flags
host
port
public void checkConnect(java.lang.String, int, java.lang.Object);
descriptor: (Ljava/lang/String;ILjava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "host can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 4
aload 1
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpeq 4
3: new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
4: StackMap locals:
StackMap stack:
iload 2
iconst_m1
if_icmpne 10
5: aload 0
new java.net.SocketPermission
dup
aload 1
6: ldc "resolve"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
7: aload 3
8: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;Ljava/lang/Object;)V
9: goto 14
10: StackMap locals:
StackMap stack:
aload 0
new java.net.SocketPermission
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: ldc "connect"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
12: aload 3
13: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;Ljava/lang/Object;)V
14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljava/lang/SecurityManager;
0 15 1 host Ljava/lang/String;
0 15 2 port I
0 15 3 context Ljava/lang/Object;
MethodParameters:
Name Flags
host
port
context
public void checkListen(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.net.SocketPermission
dup
new java.lang.StringBuilder
dup
ldc "localhost:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
1: ldc "listen"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
2: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/SecurityManager;
0 4 1 port I
MethodParameters:
Name Flags
port
public void checkAccept(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "host can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 4
aload 1
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpeq 4
3: new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
4: StackMap locals:
StackMap stack:
aload 0
new java.net.SocketPermission
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: ldc "accept"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
6: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/lang/SecurityManager;
0 8 1 host Ljava/lang/String;
0 8 2 port I
MethodParameters:
Name Flags
host
port
public void checkMulticast(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 3
aload 2
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpeq 3
2: new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
new java.net.SocketPermission
dup
aload 2
4: ldc "connect,accept"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
5: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/lang/SecurityManager;
0 7 1 maddr Ljava/net/InetAddress;
1 7 2 host Ljava/lang/String;
MethodParameters:
Name Flags
maddr
public void checkMulticast(java.net.InetAddress, byte);
descriptor: (Ljava/net/InetAddress;B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 3
start local 3 1: aload 3
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 3
aload 3
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpeq 3
2: new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
new java.net.SocketPermission
dup
aload 3
4: ldc "connect,accept"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
5: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/lang/SecurityManager;
0 7 1 maddr Ljava/net/InetAddress;
0 7 2 ttl B
1 7 3 host Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "1.4")
MethodParameters:
Name Flags
maddr
ttl
public void checkPropertiesAccess();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
new java.util.PropertyPermission
dup
ldc "*"
1: ldc "read,write"
invokespecial java.util.PropertyPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
2: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/SecurityManager;
public void checkPropertyAccess(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.util.PropertyPermission
dup
aload 1
1: ldc "read"
invokespecial java.util.PropertyPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
2: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/SecurityManager;
0 4 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key
public void checkPrintJobAccess();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new java.lang.RuntimePermission
dup
ldc "queuePrintJob"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/SecurityManager;
private static java.lang.String[] getPackages(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
ifnull 12
aload 0
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
2: new java.util.StringTokenizer
dup
aload 0
ldc ","
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
3: astore 2
start local 2 4: aload 2
invokevirtual java.util.StringTokenizer.countTokens:()I
istore 3
start local 3 5: iload 3
ifle 12
6: iload 3
anewarray java.lang.String
astore 1
7: iconst_0
istore 4
start local 4 8: goto 11
9: StackMap locals: java.lang.String java.lang.String[] java.util.StringTokenizer int int
StackMap stack:
aload 2
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 5
start local 5 10: aload 1
iload 4
iinc 4 1
aload 5
aastore
end local 5 11: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.StringTokenizer.hasMoreElements:()Z
ifne 9
end local 4 end local 3 end local 2 12: StackMap locals:
StackMap stack:
aload 1
ifnonnull 14
13: iconst_0
anewarray java.lang.String
astore 1
14: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 p Ljava/lang/String;
1 15 1 packages [Ljava/lang/String;
4 12 2 tok Ljava/util/StringTokenizer;
5 12 3 n I
8 12 4 i I
10 11 5 s Ljava/lang/String;
MethodParameters:
Name Flags
p
static void addNonExportedPackages(java.lang.ModuleLayer);
descriptor: (Ljava/lang/ModuleLayer;)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic jdk.internal.module.ModuleLoaderMap.bootModules:()Ljava/util/Set;
astore 1
start local 1 1: invokestatic jdk.internal.module.ModuleLoaderMap.platformModules:()Ljava/util/Set;
astore 2
start local 2 2: aload 0
invokevirtual java.lang.ModuleLayer.modules:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
3: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/lang/Module.getDescriptor()Ljava/lang/module/ModuleDescriptor; (5)
(Ljava/lang/Module;)Ljava/lang/module/ModuleDescriptor;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
4: aload 1
aload 2
invokedynamic test(Ljava/util/Set;Ljava/util/Set;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
java/lang/SecurityManager.lambda$1(Ljava/util/Set;Ljava/util/Set;Ljava/lang/module/ModuleDescriptor;)Z (6)
(Ljava/lang/module/ModuleDescriptor;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
5: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/lang/SecurityManager.nonExportedPkgs(Ljava/lang/module/ModuleDescriptor;)Ljava/util/Set; (6)
(Ljava/lang/module/ModuleDescriptor;)Ljava/util/Set;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
6: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/util/Collection.stream()Ljava/util/stream/Stream; (9 itf)
(Ljava/util/Set;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.flatMap:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
7: invokedynamic accept()Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
java/lang/SecurityManager.lambda$4(Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 layer Ljava/lang/ModuleLayer;
1 9 1 bootModules Ljava/util/Set<Ljava/lang/String;>;
2 9 2 platformModules Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
layer
static void invalidatePackageAccessCache();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic java.lang.SecurityManager.packageAccessLock:Ljava/lang/Object;
dup
astore 0
monitorenter
1: iconst_0
putstatic java.lang.SecurityManager.packageAccessValid:Z
2: aload 0
monitorexit
3: goto 6
StackMap locals: java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 0
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
getstatic java.lang.SecurityManager.packageDefinitionLock:Ljava/lang/Object;
dup
astore 0
monitorenter
7: iconst_0
putstatic java.lang.SecurityManager.packageDefinitionValid:Z
8: aload 0
monitorexit
9: goto 12
StackMap locals: java.lang.Object
StackMap stack: java.lang.Throwable
10: aload 0
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 3 4 any
4 5 4 any
7 9 10 any
10 11 10 any
private static java.util.Set<java.lang.String> nonExportedPkgs(java.lang.module.ModuleDescriptor);
descriptor: (Ljava/lang/module/ModuleDescriptor;)Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.util.HashSet
dup
aload 0
invokevirtual java.lang.module.ModuleDescriptor.packages:()Ljava/util/Set;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 1
start local 1 1: aload 0
invokevirtual java.lang.module.ModuleDescriptor.exports:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
2: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
java/lang/SecurityManager.lambda$5(Ljava/lang/module/ModuleDescriptor$Exports;)Z (6)
(Ljava/lang/module/ModuleDescriptor$Exports;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
3: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/lang/module/ModuleDescriptor$Exports.source()Ljava/lang/String; (5)
(Ljava/lang/module/ModuleDescriptor$Exports;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
4: aload 1
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/Set;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
java/util/Set.remove(Ljava/lang/Object;)Z (9 itf)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
5: aload 0
invokevirtual java.lang.module.ModuleDescriptor.opens:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
6: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
java/lang/SecurityManager.lambda$8(Ljava/lang/module/ModuleDescriptor$Opens;)Z (6)
(Ljava/lang/module/ModuleDescriptor$Opens;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
7: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/lang/module/ModuleDescriptor$Opens.source()Ljava/lang/String; (5)
(Ljava/lang/module/ModuleDescriptor$Opens;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
8: aload 1
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/Set;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
java/util/Set.remove(Ljava/lang/Object;)Z (9 itf)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
9: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 md Ljava/lang/module/ModuleDescriptor;
1 10 1 pkgs Ljava/util/Set<Ljava/lang/String;>;
Signature: (Ljava/lang/module/ModuleDescriptor;)Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
md
public void checkPackageAccess(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 1
ldc "package name can't be null"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: getstatic java.lang.SecurityManager.nonExportedPkgs:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 6
2: aload 0
3: new java.lang.RuntimePermission
dup
new java.lang.StringBuilder
dup
ldc "accessClassInPackage."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
4: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
5: return
6: StackMap locals:
StackMap stack:
getstatic java.lang.SecurityManager.packageAccessLock:Ljava/lang/Object;
dup
astore 3
monitorenter
7: getstatic java.lang.SecurityManager.packageAccessValid:Z
ifne 13
8: new java.lang.SecurityManager$1
dup
aload 0
invokespecial java.lang.SecurityManager$1.<init>:(Ljava/lang/SecurityManager;)V
9: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
10: astore 4
start local 4 11: aload 4
invokestatic java.lang.SecurityManager.getPackages:(Ljava/lang/String;)[Ljava/lang/String;
putstatic java.lang.SecurityManager.packageAccess:[Ljava/lang/String;
12: iconst_1
putstatic java.lang.SecurityManager.packageAccessValid:Z
end local 4 13: StackMap locals: java.lang.SecurityManager java.lang.String top java.lang.Object
StackMap stack:
getstatic java.lang.SecurityManager.packageAccess:[Ljava/lang/String;
astore 2
start local 2 14: aload 3
monitorexit
15: goto 18
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
16: aload 3
monitorexit
17: athrow
start local 2 18: StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[]
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
istore 3
start local 3 19: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 30
StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[] int top int int java.lang.String[]
StackMap stack:
20: aload 7
iload 5
aaload
astore 4
start local 4 21: aload 4
invokevirtual java.lang.String.length:()I
iconst_1
isub
istore 8
start local 8 22: iload 8
iload 3
if_icmpge 23
aload 1
aload 4
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 25
23: StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[] int java.lang.String int int java.lang.String[] int
StackMap stack:
iload 8
iload 3
if_icmpne 29
aload 4
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 29
24: aload 4
iload 8
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 29
25: StackMap locals:
StackMap stack:
aload 0
26: new java.lang.RuntimePermission
dup
new java.lang.StringBuilder
dup
ldc "accessClassInPackage."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
27: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
28: goto 31
end local 8 end local 4 29: StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[] int top int int java.lang.String[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
30: iload 5
iload 6
if_icmplt 20
31: StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[] int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Ljava/lang/SecurityManager;
0 32 1 pkg Ljava/lang/String;
14 16 2 restrictedPkgs [Ljava/lang/String;
18 32 2 restrictedPkgs [Ljava/lang/String;
11 13 4 tmpPropertyStr Ljava/lang/String;
19 32 3 plen I
21 29 4 restrictedPkg Ljava/lang/String;
22 29 8 rlast I
Exception table:
from to target type
7 15 16 any
16 17 16 any
MethodParameters:
Name Flags
pkg
public void checkPackageDefinition(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 1
ldc "package name can't be null"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: getstatic java.lang.SecurityManager.nonExportedPkgs:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 6
2: aload 0
3: new java.lang.RuntimePermission
dup
new java.lang.StringBuilder
dup
ldc "defineClassInPackage."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
4: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
5: return
6: StackMap locals:
StackMap stack:
getstatic java.lang.SecurityManager.packageDefinitionLock:Ljava/lang/Object;
dup
astore 3
monitorenter
7: getstatic java.lang.SecurityManager.packageDefinitionValid:Z
ifne 13
8: new java.lang.SecurityManager$2
dup
aload 0
invokespecial java.lang.SecurityManager$2.<init>:(Ljava/lang/SecurityManager;)V
9: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
10: astore 4
start local 4 11: aload 4
invokestatic java.lang.SecurityManager.getPackages:(Ljava/lang/String;)[Ljava/lang/String;
putstatic java.lang.SecurityManager.packageDefinition:[Ljava/lang/String;
12: iconst_1
putstatic java.lang.SecurityManager.packageDefinitionValid:Z
end local 4 13: StackMap locals: java.lang.SecurityManager java.lang.String top java.lang.Object
StackMap stack:
getstatic java.lang.SecurityManager.packageDefinition:[Ljava/lang/String;
astore 2
start local 2 14: aload 3
monitorexit
15: goto 18
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
16: aload 3
monitorexit
17: athrow
start local 2 18: StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[]
StackMap stack:
aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 26
StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
19: aload 6
iload 4
aaload
astore 3
start local 3 20: aload 1
aload 3
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 21
aload 3
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 25
21: StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[] java.lang.String int int java.lang.String[]
StackMap stack:
aload 0
22: new java.lang.RuntimePermission
dup
new java.lang.StringBuilder
dup
ldc "defineClassInPackage."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
23: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
24: goto 27
end local 3 25: StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
26: iload 4
iload 5
if_icmplt 19
27: StackMap locals: java.lang.SecurityManager java.lang.String java.lang.String[]
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Ljava/lang/SecurityManager;
0 28 1 pkg Ljava/lang/String;
14 16 2 pkgs [Ljava/lang/String;
18 28 2 pkgs [Ljava/lang/String;
11 13 4 tmpPropertyStr Ljava/lang/String;
20 25 3 restrictedPkg Ljava/lang/String;
Exception table:
from to target type
7 15 16 any
16 17 16 any
MethodParameters:
Name Flags
pkg
public void checkSetFactory();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new java.lang.RuntimePermission
dup
ldc "setFactory"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/SecurityManager;
public void checkSecurityAccess(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.security.SecurityPermission
dup
aload 1
invokespecial java.security.SecurityPermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/SecurityManager;
0 2 1 target Ljava/lang/String;
MethodParameters:
Name Flags
target
public java.lang.ThreadGroup getThreadGroup();
descriptor: ()Ljava/lang/ThreadGroup;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/SecurityManager;
private static boolean lambda$1(java.util.Set, java.util.Set, java.lang.module.ModuleDescriptor);
descriptor: (Ljava/util/Set;Ljava/util/Set;Ljava/lang/module/ModuleDescriptor;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 2
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 2
1: aload 1
aload 2
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ireturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 4 2 md Ljava/lang/module/ModuleDescriptor;
private static void lambda$4(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic java.lang.SecurityManager.nonExportedPkgs:Ljava/util/Map;
aload 0
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 pn Ljava/lang/String;
private static boolean lambda$5(java.lang.module.ModuleDescriptor$Exports);
descriptor: (Ljava/lang/module/ModuleDescriptor$Exports;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.module.ModuleDescriptor$Exports.isQualified:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 p Ljava/lang/module/ModuleDescriptor$Exports;
private static boolean lambda$8(java.lang.module.ModuleDescriptor$Opens);
descriptor: (Ljava/lang/module/ModuleDescriptor$Opens;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.module.ModuleDescriptor$Opens.isQualified:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 p Ljava/lang/module/ModuleDescriptor$Opens;
}
SourceFile: "SecurityManager.java"
NestMembers:
java.lang.SecurityManager$1 java.lang.SecurityManager$2
InnerClasses:
java.lang.SecurityManager$1
java.lang.SecurityManager$2
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Exports = java.lang.module.ModuleDescriptor$Exports of java.lang.module.ModuleDescriptor
public final Opens = java.lang.module.ModuleDescriptor$Opens of java.lang.module.ModuleDescriptor