public final class java.lang.invoke.ConstantBootstraps
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: java.lang.invoke.ConstantBootstraps
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/invoke/ConstantBootstraps;
static makeConstant(java.lang.invoke.MethodHandle, java.lang.String, java.lang.Class<?>, , java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
astore 5
start local 5 1: aload 5
invokevirtual java.lang.invoke.MethodType.parameterCount:()I
iconst_2
if_icmplt 3
2: ldc Ljava/lang/invoke/MethodHandles$Lookup;
aload 5
iconst_0
invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 6
3: StackMap locals: java.lang.invoke.MethodType
StackMap stack:
new java.lang.BootstrapMethodError
dup
4: new java.lang.StringBuilder
dup
ldc "Invalid bootstrap method declared for resolving a dynamic constant: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.BootstrapMethodError.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 2
aload 0
aload 1
aload 2
aload 3
aload 4
7: invokestatic java.lang.invoke.BootstrapMethodInvoker.invoke:(Ljava/lang/Class;Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
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 8 0 bootstrapMethod Ljava/lang/invoke/MethodHandle;
0 8 1 name Ljava/lang/String;
0 8 2 type Ljava/lang/Class<*>;
0 8 3 info Ljava/lang/Object;
0 8 4 callerClass Ljava/lang/Class<*>;
1 8 5 mt Ljava/lang/invoke/MethodType;
Signature: (Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/Class<*>;Ljava/lang/Object;Ljava/lang/Class<*>;)Ljava/lang/Object;
MethodParameters:
Name Flags
bootstrapMethod
name
type
info
callerClass
public static nullConstant(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "not reference: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 3 1 name Ljava/lang/String;
0 3 2 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<*>;)Ljava/lang/Object;
MethodParameters:
Name Flags
lookup
name
type
public static java.lang.Class<?> primitiveClass(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
ldc Ljava/lang/Class;
if_acmpeq 4
3: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpeq 6
5: new java.lang.IllegalArgumentException
dup
ldc "not primitive: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic sun.invoke.util.Wrapper.forPrimitiveType:(C)Lsun/invoke/util/Wrapper;
invokevirtual sun.invoke.util.Wrapper.primitiveType:()Ljava/lang/Class;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 7 1 name Ljava/lang/String;
0 7 2 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<*>;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
lookup
name
type
public static <E extends java.lang.Enum<E>> E enumConstant(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<E>);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Enum;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
aload 2
invokestatic java.lang.invoke.ConstantBootstraps.validateClassAccess:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/Class;)Ljava/lang/Class;
pop
4: aload 2
aload 1
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 5 1 name Ljava/lang/String;
0 5 2 type Ljava/lang/Class<TE;>;
Signature: <E:Ljava/lang/Enum<TE;>;>(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<TE;>;)TE;
MethodParameters:
Name Flags
lookup
name
type
public static getStaticFinal(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 0
aload 3
aload 1
aload 2
invokevirtual java.lang.invoke.MethodHandles$Lookup.findStaticGetter:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
astore 4
start local 4 5: aload 4
invokevirtual java.lang.invoke.MethodHandle.internalMemberName:()Ljava/lang/invoke/MemberName;
astore 5
start local 5 6: aload 5
invokevirtual java.lang.invoke.MemberName.isFinal:()Z
ifne 10
7: new java.lang.IncompatibleClassChangeError
dup
new java.lang.StringBuilder
dup
ldc "not a final field: "
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.IncompatibleClassChangeError.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 8: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
astore 5
start local 5 9: aload 5
invokestatic java.lang.invoke.MethodHandleNatives.mapLookupExceptionToError:(Ljava/lang/ReflectiveOperationException;)Ljava/lang/LinkageError;
athrow
end local 5 start local 4 10: StackMap locals: java.lang.invoke.MethodHandle
StackMap stack:
aload 4
invokevirtual java.lang.invoke.MethodHandle.invoke:()Ljava/lang/Object;
11: areturn
12: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
start local 5 13: aload 5
athrow
end local 5 14: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
start local 5 15: new java.lang.LinkageError
dup
ldc "Unexpected throwable"
aload 5
invokespecial java.lang.LinkageError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
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 16 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 16 1 name Ljava/lang/String;
0 16 2 type Ljava/lang/Class<*>;
0 16 3 declaringClass Ljava/lang/Class<*>;
5 8 4 mh Ljava/lang/invoke/MethodHandle;
10 16 4 mh Ljava/lang/invoke/MethodHandle;
6 8 5 member Ljava/lang/invoke/MemberName;
9 10 5 ex Ljava/lang/ReflectiveOperationException;
13 14 5 e Ljava/lang/Throwable;
15 16 5 e Ljava/lang/Throwable;
Exception table:
from to target type
4 8 8 Class java.lang.ReflectiveOperationException
10 11 12 Class java.lang.RuntimeException
10 11 12 Class java.lang.Error
10 11 14 Class java.lang.Throwable
Signature: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljava/lang/Object;
MethodParameters:
Name Flags
lookup
name
type
declaringClass
public static getStaticFinal(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 3
2: aload 2
invokestatic sun.invoke.util.Wrapper.forPrimitiveType:(Ljava/lang/Class;)Lsun/invoke/util/Wrapper;
invokevirtual sun.invoke.util.Wrapper.wrapperType:()Ljava/lang/Class;
goto 4
3: StackMap locals:
StackMap stack:
aload 2
4: StackMap locals:
StackMap stack: java.lang.Class
astore 3
start local 3 5: aload 0
aload 1
aload 2
aload 3
invokestatic java.lang.invoke.ConstantBootstraps.getStaticFinal:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 6 1 name Ljava/lang/String;
0 6 2 type Ljava/lang/Class<*>;
5 6 3 declaring Ljava/lang/Class<*>;
Signature: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<*>;)Ljava/lang/Object;
MethodParameters:
Name Flags
lookup
name
type
public static invoke(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<?>, java.lang.invoke.MethodHandle, []);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/invoke/MethodHandle;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 4
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 2
aload 3
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
invokevirtual java.lang.invoke.MethodType.returnType:()Ljava/lang/Class;
if_acmpeq 7
4: aload 3
aload 3
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
aload 2
invokevirtual java.lang.invoke.MethodType.changeReturnType:(Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokevirtual java.lang.invoke.MethodHandle.asType:(Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
5: aload 3
invokevirtual java.lang.invoke.MethodHandle.isVarargsCollector:()Z
invokevirtual java.lang.invoke.MethodHandle.withVarargs:(Z)Ljava/lang/invoke/MethodHandle;
6: astore 3
7: StackMap locals:
StackMap stack:
aload 3
aload 4
invokevirtual java.lang.invoke.MethodHandle.invokeWithArguments:([Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 8 1 name Ljava/lang/String;
0 8 2 type Ljava/lang/Class<*>;
0 8 3 handle Ljava/lang/invoke/MethodHandle;
0 8 4 args [Ljava/lang/Object;
Exceptions:
throws java.lang.Throwable
Signature: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<*>;Ljava/lang/invoke/MethodHandle;[Ljava/lang/Object;)Ljava/lang/Object;
MethodParameters:
Name Flags
lookup
name
type
handle
args
public static java.lang.invoke.VarHandle fieldVarHandle(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<java.lang.invoke.VarHandle>, java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 4
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 2
ldc Ljava/lang/invoke/VarHandle;
if_acmpeq 7
6: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 3
aload 1
aload 4
invokevirtual java.lang.invoke.MethodHandles$Lookup.findVarHandle:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
8: areturn
9: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
astore 5
start local 5 10: aload 5
invokestatic java.lang.invoke.MethodHandleNatives.mapLookupExceptionToError:(Ljava/lang/ReflectiveOperationException;)Ljava/lang/LinkageError;
athrow
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 11 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 11 1 name Ljava/lang/String;
0 11 2 type Ljava/lang/Class<Ljava/lang/invoke/VarHandle;>;
0 11 3 declaringClass Ljava/lang/Class<*>;
0 11 4 fieldType Ljava/lang/Class<*>;
10 11 5 e Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
7 8 9 Class java.lang.ReflectiveOperationException
Signature: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<Ljava/lang/invoke/VarHandle;>;Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljava/lang/invoke/VarHandle;
MethodParameters:
Name Flags
lookup
name
type
declaringClass
fieldType
public static java.lang.invoke.VarHandle staticFieldVarHandle(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<java.lang.invoke.VarHandle>, java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 4
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 2
ldc Ljava/lang/invoke/VarHandle;
if_acmpeq 7
6: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 3
aload 1
aload 4
invokevirtual java.lang.invoke.MethodHandles$Lookup.findStaticVarHandle:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
8: areturn
9: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
astore 5
start local 5 10: aload 5
invokestatic java.lang.invoke.MethodHandleNatives.mapLookupExceptionToError:(Ljava/lang/ReflectiveOperationException;)Ljava/lang/LinkageError;
athrow
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 11 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 11 1 name Ljava/lang/String;
0 11 2 type Ljava/lang/Class<Ljava/lang/invoke/VarHandle;>;
0 11 3 declaringClass Ljava/lang/Class<*>;
0 11 4 fieldType Ljava/lang/Class<*>;
10 11 5 e Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
7 8 9 Class java.lang.ReflectiveOperationException
Signature: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<Ljava/lang/invoke/VarHandle;>;Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljava/lang/invoke/VarHandle;
MethodParameters:
Name Flags
lookup
name
type
declaringClass
fieldType
public static java.lang.invoke.VarHandle arrayVarHandle(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<java.lang.invoke.VarHandle>, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 2
ldc Ljava/lang/invoke/VarHandle;
if_acmpeq 5
4: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 3
invokestatic java.lang.invoke.ConstantBootstraps.validateClassAccess:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/Class;)Ljava/lang/Class;
invokestatic java.lang.invoke.MethodHandles.arrayElementVarHandle:(Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 6 1 name Ljava/lang/String;
0 6 2 type Ljava/lang/Class<Ljava/lang/invoke/VarHandle;>;
0 6 3 arrayClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<Ljava/lang/invoke/VarHandle;>;Ljava/lang/Class<*>;)Ljava/lang/invoke/VarHandle;
MethodParameters:
Name Flags
lookup
name
type
arrayClass
public static explicitCast(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.Class<?>, );
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpne 2
1: new java.lang.ClassCastException
dup
ldc "Can not convert to void"
invokespecial java.lang.ClassCastException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
ldc Ljava/lang/Object;
if_acmpne 4
3: aload 3
areturn
4: StackMap locals:
StackMap stack:
aload 2
invokestatic java.lang.invoke.MethodHandles.identity:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
astore 4
start local 4 5: aload 2
ldc Ljava/lang/Object;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
astore 5
start local 5 6: aload 4
aload 5
invokestatic java.lang.invoke.MethodHandles.explicitCastArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
astore 6
start local 6 7: aload 6
aload 3
invokevirtual java.lang.invoke.MethodHandle.invoke:(Ljava/lang/Object;)Ljava/lang/Object;
8: areturn
9: StackMap locals: java.lang.invoke.MethodHandles$Lookup java.lang.String java.lang.Class java.lang.Object java.lang.invoke.MethodHandle java.lang.invoke.MethodType java.lang.invoke.MethodHandle
StackMap stack: java.lang.ClassCastException
astore 7
start local 7 10: aload 7
athrow
end local 7 11: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
start local 7 12: new java.lang.InternalError
dup
aload 7
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 7 end local 6 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 13 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 13 1 name Ljava/lang/String;
0 13 2 dstType Ljava/lang/Class<*>;
0 13 3 value Ljava/lang/Object;
5 13 4 id Ljava/lang/invoke/MethodHandle;
6 13 5 mt Ljava/lang/invoke/MethodType;
7 13 6 conv Ljava/lang/invoke/MethodHandle;
10 11 7 e Ljava/lang/ClassCastException;
12 13 7 throwable Ljava/lang/Throwable;
Exception table:
from to target type
7 8 9 Class java.lang.ClassCastException
7 8 11 Class java.lang.Throwable
Exceptions:
throws java.lang.ClassCastException
Signature: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class<*>;Ljava/lang/Object;)Ljava/lang/Object;
MethodParameters:
Name Flags
lookup
name
dstType
value
private static <T> java.lang.Class<T> validateClassAccess(java.lang.invoke.MethodHandles$Lookup, java.lang.Class<T>);
descriptor: (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.invoke.MethodHandles$Lookup.accessClass:(Ljava/lang/Class;)Ljava/lang/Class;
pop
1: aload 1
2: areturn
3: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
astore 2
start local 2 4: aload 2
invokestatic java.lang.invoke.MethodHandleNatives.mapLookupExceptionToError:(Ljava/lang/ReflectiveOperationException;)Ljava/lang/LinkageError;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 lookup Ljava/lang/invoke/MethodHandles$Lookup;
0 5 1 type Ljava/lang/Class<TT;>;
4 5 2 ex Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
0 2 3 Class java.lang.ReflectiveOperationException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/Class<TT;>;)Ljava/lang/Class<TT;>;
MethodParameters:
Name Flags
lookup
type
}
SourceFile: "ConstantBootstraps.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles