final class jdk.nashorn.internal.runtime.linker.ClassAndLoader
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.linker.ClassAndLoader
super_class: java.lang.Object
{
private static final java.security.AccessControlContext GET_LOADER_ACC_CTXT;
descriptor: Ljava/security/AccessControlContext;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.Class<?> representativeClass;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<*>;
private java.lang.ClassLoader loader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0002) ACC_PRIVATE
private boolean loaderRetrieved;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.nashorn.internal.runtime.linker.ClassAndLoader.$assertionsDisabled:Z
3: iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "getClassLoader"
aastore
invokestatic jdk.nashorn.internal.runtime.linker.ClassAndLoader.createPermAccCtxt:([Ljava/lang/String;)Ljava/security/AccessControlContext;
putstatic jdk.nashorn.internal.runtime.linker.ClassAndLoader.GET_LOADER_ACC_CTXT:Ljava/security/AccessControlContext;
return
LocalVariableTable:
Start End Slot Name Signature
static java.security.AccessControlContext createPermAccCtxt(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljava/security/AccessControlContext;
flags: (0x0088) ACC_STATIC, ACC_VARARGS
Code:
stack=9, locals=6, args_size=1
start local 0 0: new java.security.Permissions
dup
invokespecial java.security.Permissions.<init>:()V
astore 1
start local 1 1: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: java.lang.String[] java.security.Permissions top int int java.lang.String[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 1
new java.lang.RuntimePermission
dup
aload 2
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.security.Permissions.add:(Ljava/security/Permission;)V
end local 2 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 2
6: new java.security.AccessControlContext
dup
iconst_1
anewarray java.security.ProtectionDomain
dup
iconst_0
new java.security.ProtectionDomain
dup
aconst_null
aload 1
invokespecial java.security.ProtectionDomain.<init>:(Ljava/security/CodeSource;Ljava/security/PermissionCollection;)V
aastore
invokespecial java.security.AccessControlContext.<init>:([Ljava/security/ProtectionDomain;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 permNames [Ljava/lang/String;
1 7 1 perms Ljava/security/Permissions;
3 4 2 permName Ljava/lang/String;
MethodParameters:
Name Flags
permNames final
void <init>(java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Z)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.nashorn.internal.runtime.linker.ClassAndLoader.representativeClass:Ljava/lang/Class;
2: iload 2
ifeq 4
3: aload 0
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.retrieveLoader:()V
4: StackMap locals: jdk.nashorn.internal.runtime.linker.ClassAndLoader java.lang.Class int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
0 5 1 representativeClass Ljava/lang/Class<*>;
0 5 2 retrieveLoader Z
Signature: (Ljava/lang/Class<*>;Z)V
MethodParameters:
Name Flags
representativeClass final
retrieveLoader final
java.lang.Class<?> getRepresentativeClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.linker.ClassAndLoader.representativeClass:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
Signature: ()Ljava/lang/Class<*>;
boolean canSee(jdk.nashorn.internal.runtime.linker.ClassAndLoader);
descriptor: (Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;)Z
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.getRepresentativeClass:()Ljava/lang/Class;
astore 2
start local 2 1: aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
iconst_0
aload 0
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.getLoader:()Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
aload 2
if_acmpne 2
iconst_1
ireturn
StackMap locals: java.lang.Class
StackMap stack:
2: iconst_0
3: ireturn
end local 2 4: StackMap locals: jdk.nashorn.internal.runtime.linker.ClassAndLoader jdk.nashorn.internal.runtime.linker.ClassAndLoader
StackMap stack: java.lang.ClassNotFoundException
pop
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
0 6 1 other Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
1 4 2 otherClass Ljava/lang/Class<*>;
Exception table:
from to target type
0 3 4 Class java.lang.ClassNotFoundException
MethodParameters:
Name Flags
other final
java.lang.ClassLoader getLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.linker.ClassAndLoader.loaderRetrieved:Z
ifne 2
1: aload 0
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.retrieveLoader:()V
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.getRetrievedLoader:()Ljava/lang/ClassLoader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
java.lang.ClassLoader getRetrievedLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.nashorn.internal.runtime.linker.ClassAndLoader.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.nashorn.internal.runtime.linker.ClassAndLoader.loaderRetrieved:Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.linker.ClassAndLoader.loader:Ljava/lang/ClassLoader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
private void retrieveLoader();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.linker.ClassAndLoader.representativeClass:Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
putfield jdk.nashorn.internal.runtime.linker.ClassAndLoader.loader:Ljava/lang/ClassLoader;
1: aload 0
iconst_1
putfield jdk.nashorn.internal.runtime.linker.ClassAndLoader.loaderRetrieved:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.nashorn.internal.runtime.linker.ClassAndLoader
ifeq 1
aload 1
checkcast jdk.nashorn.internal.runtime.linker.ClassAndLoader
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.getRetrievedLoader:()Ljava/lang/ClassLoader;
aload 0
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.getRetrievedLoader:()Ljava/lang/ClassLoader;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
0 2 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.getRetrievedLoader:()Ljava/lang/ClassLoader;
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
static jdk.nashorn.internal.runtime.linker.ClassAndLoader getDefiningClassAndLoader(java.lang.Class<?>[]);
descriptor: ([Ljava/lang/Class;)Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
if_icmpne 2
1: new jdk.nashorn.internal.runtime.linker.ClassAndLoader
dup
aload 0
iconst_0
aaload
iconst_0
invokespecial jdk.nashorn.internal.runtime.linker.ClassAndLoader.<init>:(Ljava/lang/Class;Z)V
areturn
2: StackMap locals:
StackMap stack:
new jdk.nashorn.internal.runtime.linker.ClassAndLoader$1
dup
aload 0
invokespecial jdk.nashorn.internal.runtime.linker.ClassAndLoader$1.<init>:([Ljava/lang/Class;)V
3: getstatic jdk.nashorn.internal.runtime.linker.ClassAndLoader.GET_LOADER_ACC_CTXT:Ljava/security/AccessControlContext;
4: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.linker.ClassAndLoader
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 types [Ljava/lang/Class;
Signature: ([Ljava/lang/Class<*>;)Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
MethodParameters:
Name Flags
types final
static jdk.nashorn.internal.runtime.linker.ClassAndLoader getDefiningClassAndLoaderPrivileged(java.lang.Class<?>[]);
descriptor: ([Ljava/lang/Class;)Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokestatic jdk.nashorn.internal.runtime.linker.ClassAndLoader.getMaximumVisibilityLoaders:([Ljava/lang/Class;)Ljava/util/Collection;
astore 1
start local 1 1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
start local 2 2: aload 1
invokeinterface java.util.Collection.size:()I
iconst_1
if_icmpne 4
3: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.linker.ClassAndLoader
areturn
4: StackMap locals: java.util.Collection java.util.Iterator
StackMap stack:
getstatic jdk.nashorn.internal.runtime.linker.ClassAndLoader.$assertionsDisabled:Z
ifne 5
aload 1
invokeinterface java.util.Collection.size:()I
iconst_1
if_icmpgt 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 6: aload 3
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.linker.ClassAndLoader
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.getRepresentativeClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: goto 9
8: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 3
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.linker.ClassAndLoader
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.getRepresentativeClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
10: ldc "extend.ambiguous.defining.class"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 types [Ljava/lang/Class;
1 11 1 maximumVisibilityLoaders Ljava/util/Collection<Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;>;
2 11 2 it Ljava/util/Iterator<Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;>;
6 11 3 b Ljava/lang/StringBuilder;
Signature: ([Ljava/lang/Class<*>;)Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
MethodParameters:
Name Flags
types final
private static java.util.Collection<jdk.nashorn.internal.runtime.linker.ClassAndLoader> getMaximumVisibilityLoaders(java.lang.Class<?>[]);
descriptor: ([Ljava/lang/Class;)Ljava/util/Collection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=8, args_size=1
start local 0 0: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 1
start local 1 1: aload 0
invokestatic jdk.nashorn.internal.runtime.linker.ClassAndLoader.getClassLoadersForTypes:([Ljava/lang/Class;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 16
StackMap locals: java.lang.Class[] java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.linker.ClassAndLoader
astore 2
start local 2 3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
start local 4 4: goto 14
5: StackMap locals: java.lang.Class[] java.util.List jdk.nashorn.internal.runtime.linker.ClassAndLoader java.util.Iterator java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.linker.ClassAndLoader
astore 5
start local 5 6: aload 2
aload 5
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.canSee:(Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;)Z
istore 6
start local 6 7: aload 5
aload 2
invokevirtual jdk.nashorn.internal.runtime.linker.ClassAndLoader.canSee:(Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;)Z
istore 7
start local 7 8: iload 6
ifeq 12
9: iload 7
ifne 14
10: aload 4
invokeinterface java.util.Iterator.remove:()V
11: goto 14
StackMap locals: jdk.nashorn.internal.runtime.linker.ClassAndLoader int int
StackMap stack:
12: iload 7
ifeq 14
13: goto 16
end local 7 end local 6 end local 5 14: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
15: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 end local 2 16: StackMap locals: java.lang.Class[] java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
17: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 types [Ljava/lang/Class;
1 18 1 maximumVisibilityLoaders Ljava/util/List<Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;>;
3 16 2 maxCandidate Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
4 16 4 it Ljava/util/Iterator<Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;>;
6 14 5 existingMax Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
7 14 6 candidateSeesExisting Z
8 14 7 exitingSeesCandidate Z
Signature: ([Ljava/lang/Class<*>;)Ljava/util/Collection<Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;>;
MethodParameters:
Name Flags
types final
private static java.util.Collection<jdk.nashorn.internal.runtime.linker.ClassAndLoader> getClassLoadersForTypes(java.lang.Class<?>[]);
descriptor: ([Ljava/lang/Class;)Ljava/util/Collection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
astore 1
start local 1 1: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: java.lang.Class[] java.util.Map top int int java.lang.Class[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: new jdk.nashorn.internal.runtime.linker.ClassAndLoader
dup
aload 2
iconst_1
invokespecial jdk.nashorn.internal.runtime.linker.ClassAndLoader.<init>:(Ljava/lang/Class;Z)V
astore 6
start local 6 4: aload 1
aload 6
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 6
5: aload 1
aload 6
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 end local 2 6: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 2
8: aload 1
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 types [Ljava/lang/Class;
1 9 1 classesAndLoaders Ljava/util/Map<Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;>;
3 6 2 c Ljava/lang/Class<*>;
4 6 6 cl Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;
Signature: ([Ljava/lang/Class<*>;)Ljava/util/Collection<Ljdk/nashorn/internal/runtime/linker/ClassAndLoader;>;
MethodParameters:
Name Flags
types final
}
SourceFile: "ClassAndLoader.java"
NestMembers:
jdk.nashorn.internal.runtime.linker.ClassAndLoader$1
InnerClasses:
jdk.nashorn.internal.runtime.linker.ClassAndLoader$1