final class jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker implements jdk.dynalink.linker.TypeBasedGuardingDynamicLinker
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker
super_class: java.lang.Object
{
private static final java.lang.Class<?> STATEMENT_CLASS;
descriptor: Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/Class<*>;
private static final java.lang.Class<?> XMLENCODER_CLASS;
descriptor: Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/Class<*>;
private static final java.lang.Class<?> XMLDECODER_CLASS;
descriptor: Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/Class<*>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "Statement"
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.getBeanClass:(Ljava/lang/String;)Ljava/lang/Class;
putstatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.STATEMENT_CLASS:Ljava/lang/Class;
1: ldc "XMLEncoder"
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.getBeanClass:(Ljava/lang/String;)Ljava/lang/Class;
putstatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.XMLENCODER_CLASS:Ljava/lang/Class;
2: ldc "XMLDecoder"
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.getBeanClass:(Ljava/lang/String;)Ljava/lang/Class;
putstatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.XMLDECODER_CLASS:Ljava/lang/Class;
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/nashorn/internal/runtime/linker/ReflectionCheckLinker;
private static java.lang.Class<?> getBeanClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "java.beans."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
pop
3: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
name final
public boolean canLinkType(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.isReflectionClass:(Ljava/lang/Class;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/linker/ReflectionCheckLinker;
0 1 1 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
type final
private static boolean isReflectionClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ldc Ljava/lang/Class;
if_acmpeq 1
ldc Ljava/lang/ClassLoader;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.STATEMENT_CLASS:Ljava/lang/Class;
ifnull 3
getstatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.STATEMENT_CLASS:Ljava/lang/Class;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 5
3: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.XMLENCODER_CLASS:Ljava/lang/Class;
ifnull 4
getstatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.XMLENCODER_CLASS:Ljava/lang/Class;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 5
4: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.XMLDECODER_CLASS:Ljava/lang/Class;
ifnull 6
getstatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.XMLDECODER_CLASS:Ljava/lang/Class;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 6
5: StackMap locals:
StackMap stack:
iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 1
start local 1 7: aload 1
ldc "java.lang.reflect."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
aload 1
ldc "java.lang.invoke."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
iconst_0
ireturn
StackMap locals: java.lang.String
StackMap stack:
8: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 type Ljava/lang/Class<*>;
7 9 1 name Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
type final
public jdk.dynalink.linker.GuardedInvocation getGuardedInvocation(jdk.dynalink.linker.LinkRequest, jdk.dynalink.linker.LinkerServices);
descriptor: (Ljdk/dynalink/linker/LinkRequest;Ljdk/dynalink/linker/LinkerServices;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.checkLinkRequest:(Ljdk/dynalink/linker/LinkRequest;)V
1: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/linker/ReflectionCheckLinker;
0 2 1 origRequest Ljdk/dynalink/linker/LinkRequest;
0 2 2 linkerServices Ljdk/dynalink/linker/LinkerServices;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
origRequest final
linkerServices final
private static boolean isReflectiveCheckNeeded(java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Z)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: ldc Ljava/lang/reflect/Proxy;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 4
1: aload 0
invokestatic java.lang.reflect.Proxy.isProxyClass:(Ljava/lang/Class;)Z
ifeq 3
2: iload 1
ireturn
3: StackMap locals:
StackMap stack:
iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.isReflectionClass:(Ljava/lang/Class;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 type Ljava/lang/Class<*>;
0 5 1 isStatic Z
Signature: (Ljava/lang/Class<*>;Z)Z
MethodParameters:
Name Flags
type final
isStatic final
static void checkReflectionAccess(java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Z)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 2
start local 2 1: aload 2
invokevirtual jdk.nashorn.internal.objects.Global.getClassFilter:()Ljdk/nashorn/api/scripting/ClassFilter;
astore 3
start local 3 2: aload 3
ifnull 4
aload 0
iload 1
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.isReflectiveCheckNeeded:(Ljava/lang/Class;Z)Z
ifeq 4
3: ldc "no.reflection.with.classfilter"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
4: StackMap locals: jdk.nashorn.internal.objects.Global jdk.nashorn.api.scripting.ClassFilter
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 4
start local 4 5: aload 4
ifnull 7
aload 0
iload 1
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.isReflectiveCheckNeeded:(Ljava/lang/Class;Z)Z
ifeq 7
6: aload 4
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.checkReflectionPermission:(Ljava/lang/SecurityManager;)V
7: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 clazz Ljava/lang/Class<*>;
0 8 1 isStatic Z
1 8 2 global Ljdk/nashorn/internal/objects/Global;
2 8 3 cf Ljdk/nashorn/api/scripting/ClassFilter;
5 8 4 sm Ljava/lang/SecurityManager;
Signature: (Ljava/lang/Class<*>;Z)V
MethodParameters:
Name Flags
clazz final
isStatic final
private static void checkLinkRequest(jdk.dynalink.linker.LinkRequest);
descriptor: (Ljdk/dynalink/linker/LinkRequest;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 1
start local 1 1: aload 1
invokevirtual jdk.nashorn.internal.objects.Global.getClassFilter:()Ljdk/nashorn/api/scripting/ClassFilter;
astore 2
start local 2 2: aload 2
ifnull 4
3: ldc "no.reflection.with.classfilter"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
4: StackMap locals: jdk.nashorn.internal.objects.Global jdk.nashorn.api.scripting.ClassFilter
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 5: aload 3
ifnull 13
6: aload 0
invokeinterface jdk.dynalink.linker.LinkRequest.getReceiver:()Ljava/lang/Object;
astore 4
start local 4 7: aload 4
instanceof java.lang.Class
ifeq 12
aload 4
checkcast java.lang.Class
invokevirtual java.lang.Class.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifeq 12
8: aload 0
invokeinterface jdk.dynalink.linker.LinkRequest.getCallSiteDescriptor:()Ljdk/dynalink/CallSiteDescriptor;
astore 5
start local 5 9: ldc "static"
aload 5
invokestatic jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor.getOperand:(Ljdk/dynalink/CallSiteDescriptor;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
aload 5
getstatic jdk.dynalink.StandardOperation.GET:Ljdk/dynalink/StandardOperation;
getstatic jdk.dynalink.StandardNamespace.PROPERTY:Ljdk/dynalink/StandardNamespace;
invokestatic jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor.contains:(Ljdk/dynalink/CallSiteDescriptor;Ljdk/dynalink/StandardOperation;Ljdk/dynalink/StandardNamespace;)Z
ifeq 12
10: aload 4
checkcast java.lang.Class
invokestatic jdk.nashorn.internal.runtime.Context.isAccessibleClass:(Ljava/lang/Class;)Z
ifeq 12
aload 4
checkcast java.lang.Class
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.isReflectionClass:(Ljava/lang/Class;)Z
ifne 12
11: return
end local 5 12: StackMap locals: java.lang.SecurityManager java.lang.Object
StackMap stack:
aload 3
invokestatic jdk.nashorn.internal.runtime.linker.ReflectionCheckLinker.checkReflectionPermission:(Ljava/lang/SecurityManager;)V
end local 4 13: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 request Ljdk/dynalink/linker/LinkRequest;
1 14 1 global Ljdk/nashorn/internal/objects/Global;
2 14 2 cf Ljdk/nashorn/api/scripting/ClassFilter;
5 14 3 sm Ljava/lang/SecurityManager;
7 13 4 self Ljava/lang/Object;
9 12 5 desc Ljdk/dynalink/CallSiteDescriptor;
MethodParameters:
Name Flags
request final
private static void checkReflectionPermission(java.lang.SecurityManager);
descriptor: (Ljava/lang/SecurityManager;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new java.lang.RuntimePermission
dup
ldc "nashorn.JavaReflection"
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 sm Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
sm final
}
SourceFile: "ReflectionCheckLinker.java"