public final class sun.rmi.server.Util
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.rmi.server.Util
super_class: java.lang.Object
{
static final int logLevel;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
public static final sun.rmi.runtime.Log serverRefLog;
descriptor: Lsun/rmi/runtime/Log;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final boolean ignoreStubClasses;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Map<java.lang.Class<?>, java.lang.Void> withoutStubs;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class<*>;Ljava/lang/Void;>;
private static final java.lang.Class<?>[] stubConsParamTypes;
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=4, locals=0, args_size=0
0: invokedynamic run()Ljava/security/PrivilegedAction;
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;
sun/rmi/server/Util.lambda$0()Ljava/lang/String; (6)
()Ljava/lang/String;
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
2: invokestatic java.rmi.server.LogStream.parseLevel:(Ljava/lang/String;)I
putstatic sun.rmi.server.Util.logLevel:I
3: ldc "sun.rmi.server.ref"
ldc "transport"
getstatic sun.rmi.server.Util.logLevel:I
invokestatic sun.rmi.runtime.Log.getLog:(Ljava/lang/String;Ljava/lang/String;I)Lsun/rmi/runtime/Log;
4: putstatic sun.rmi.server.Util.serverRefLog:Lsun/rmi/runtime/Log;
5: invokedynamic run()Ljava/security/PrivilegedAction;
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;
sun/rmi/server/Util.lambda$1()Ljava/lang/Boolean; (6)
()Ljava/lang/Boolean;
6: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
7: putstatic sun.rmi.server.Util.ignoreStubClasses:Z
8: new java.util.WeakHashMap
dup
bipush 11
invokespecial java.util.WeakHashMap.<init>:(I)V
invokestatic java.util.Collections.synchronizedMap:(Ljava/util/Map;)Ljava/util/Map;
9: putstatic sun.rmi.server.Util.withoutStubs:Ljava/util/Map;
10: iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/rmi/server/RemoteRef;
aastore
putstatic sun.rmi.server.Util.stubConsParamTypes:[Ljava/lang/Class;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/server/Util;
public static java.rmi.Remote createProxy(java.lang.Class<?>, java.rmi.server.RemoteRef, boolean);
descriptor: (Ljava/lang/Class;Ljava/rmi/server/RemoteRef;Z)Ljava/rmi/Remote;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic sun.rmi.server.Util.getRemoteClass:(Ljava/lang/Class;)Ljava/lang/Class;
astore 3
start local 3 1: goto 8
end local 3 StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
2: pop
3: new java.rmi.StubNotFoundException
dup
4: new java.lang.StringBuilder
dup
ldc "object does not implement a remote interface: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.rmi.StubNotFoundException.<init>:(Ljava/lang/String;)V
athrow
start local 3 8: StackMap locals: java.lang.Class
StackMap stack:
iload 2
ifne 10
9: getstatic sun.rmi.server.Util.ignoreStubClasses:Z
ifne 11
aload 3
invokestatic sun.rmi.server.Util.stubClassExists:(Ljava/lang/Class;)Z
ifeq 11
10: StackMap locals:
StackMap stack:
aload 3
aload 1
invokestatic sun.rmi.server.Util.createStub:(Ljava/lang/Class;Ljava/rmi/server/RemoteRef;)Ljava/rmi/server/RemoteStub;
areturn
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 4
start local 4 12: aload 0
invokestatic sun.rmi.server.Util.getRemoteInterfaces:(Ljava/lang/Class;)[Ljava/lang/Class;
astore 5
start local 5 13: new java.rmi.server.RemoteObjectInvocationHandler
dup
aload 1
invokespecial java.rmi.server.RemoteObjectInvocationHandler.<init>:(Ljava/rmi/server/RemoteRef;)V
14: astore 6
start local 6 15: new sun.rmi.server.Util$1
dup
aload 4
aload 5
aload 6
invokespecial sun.rmi.server.Util$1.<init>:(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.rmi.Remote
16: areturn
17: StackMap locals: java.lang.Class java.rmi.server.RemoteRef int java.lang.Class java.lang.ClassLoader java.lang.Class[] java.lang.reflect.InvocationHandler
StackMap stack: java.lang.IllegalArgumentException
astore 7
start local 7 18: new java.rmi.StubNotFoundException
dup
ldc "unable to create proxy"
aload 7
invokespecial java.rmi.StubNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)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 19 0 implClass Ljava/lang/Class<*>;
0 19 1 clientRef Ljava/rmi/server/RemoteRef;
0 19 2 forceStubUse Z
1 2 3 remoteClass Ljava/lang/Class<*>;
8 19 3 remoteClass Ljava/lang/Class<*>;
12 19 4 loader Ljava/lang/ClassLoader;
13 19 5 interfaces [Ljava/lang/Class;
15 19 6 handler Ljava/lang/reflect/InvocationHandler;
18 19 7 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
0 1 2 Class java.lang.ClassNotFoundException
15 16 17 Class java.lang.IllegalArgumentException
Exceptions:
throws java.rmi.StubNotFoundException
Signature: (Ljava/lang/Class<*>;Ljava/rmi/server/RemoteRef;Z)Ljava/rmi/Remote;
MethodParameters:
Name Flags
implClass
clientRef
forceStubUse
private static boolean stubClassExists(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic sun.rmi.server.Util.withoutStubs:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 8
1: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "_Stub"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: iconst_0
3: aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
4: invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
pop
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
pop
7: getstatic sun.rmi.server.Util.withoutStubs:Ljava/util/Map;
aload 0
aconst_null
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 remoteClass Ljava/lang/Class<*>;
Exception table:
from to target type
1 5 6 Class java.lang.ClassNotFoundException
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
remoteClass
private static java.lang.Class<?> getRemoteClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: goto 9
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
astore 1
start local 1 2: aload 1
arraylength
iconst_1
isub
istore 2
start local 2 3: goto 7
4: StackMap locals: java.lang.Class[] int
StackMap stack:
ldc Ljava/rmi/Remote;
aload 1
iload 2
aaload
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 6
5: aload 0
areturn
6: StackMap locals:
StackMap stack:
iinc 2 -1
StackMap locals:
StackMap stack:
7: iload 2
ifge 4
end local 2 8: aload 0
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 0
end local 1 9: StackMap locals:
StackMap stack:
aload 0
ifnonnull 1
10: new java.lang.ClassNotFoundException
dup
11: ldc "class does not implement java.rmi.Remote"
12: invokespecial java.lang.ClassNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 cl Ljava/lang/Class<*>;
2 9 1 interfaces [Ljava/lang/Class;
3 8 2 i I
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
cl
private static java.lang.Class<?>[] getRemoteInterfaces(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)[Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokestatic sun.rmi.server.Util.getRemoteInterfaces:(Ljava/util/ArrayList;Ljava/lang/Class;)V
2: aload 1
aload 1
invokevirtual java.util.ArrayList.size:()I
anewarray java.lang.Class
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.Class[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 remoteClass Ljava/lang/Class<*>;
1 3 1 list Ljava/util/ArrayList<Ljava/lang/Class<*>;>;
Signature: (Ljava/lang/Class<*>;)[Ljava/lang/Class<*>;
MethodParameters:
Name Flags
remoteClass
private static void getRemoteInterfaces(java.util.ArrayList<java.lang.Class<?>>, java.lang.Class<?>);
descriptor: (Ljava/util/ArrayList;Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 0
aload 2
invokestatic sun.rmi.server.Util.getRemoteInterfaces:(Ljava/util/ArrayList;Ljava/lang/Class;)V
3: StackMap locals: java.lang.Class
StackMap stack:
aload 1
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 17
6: StackMap locals: java.lang.Class[] int
StackMap stack:
aload 3
iload 4
aaload
astore 5
start local 5 7: ldc Ljava/rmi/Remote;
aload 5
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 16
8: aload 0
aload 5
invokevirtual java.util.ArrayList.contains:(Ljava/lang/Object;)Z
ifne 16
9: aload 5
invokevirtual java.lang.Class.getMethods:()[Ljava/lang/reflect/Method;
astore 6
start local 6 10: iconst_0
istore 7
start local 7 11: goto 14
12: StackMap locals: java.lang.Class java.lang.reflect.Method[] int
StackMap stack:
aload 6
iload 7
aaload
invokestatic sun.rmi.server.Util.checkMethod:(Ljava/lang/reflect/Method;)V
13: iinc 7 1
StackMap locals:
StackMap stack:
14: iload 7
aload 6
arraylength
if_icmplt 12
end local 7 15: aload 0
aload 5
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 6 end local 5 16: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
17: iload 4
aload 3
arraylength
if_icmplt 6
end local 4 18: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 list Ljava/util/ArrayList<Ljava/lang/Class<*>;>;
0 19 1 cl Ljava/lang/Class<*>;
1 19 2 superclass Ljava/lang/Class<*>;
4 19 3 interfaces [Ljava/lang/Class;
5 18 4 i I
7 16 5 intf Ljava/lang/Class<*>;
10 16 6 methods [Ljava/lang/reflect/Method;
11 15 7 j I
Signature: (Ljava/util/ArrayList<Ljava/lang/Class<*>;>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
list
cl
private static void checkMethod(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.reflect.Method.getExceptionTypes:()[Ljava/lang/Class;
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 6
3: StackMap locals: java.lang.Class[] int
StackMap stack:
aload 1
iload 2
aaload
ldc Ljava/rmi/RemoteException;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 5
4: return
5: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 1
arraylength
if_icmplt 3
end local 2 7: new java.lang.IllegalArgumentException
dup
8: new java.lang.StringBuilder
dup
ldc "illegal remote method encountered: "
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;
9: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 m Ljava/lang/reflect/Method;
1 10 1 ex [Ljava/lang/Class;
2 7 2 i I
MethodParameters:
Name Flags
m
private static java.rmi.server.RemoteStub createStub(java.lang.Class<?>, java.rmi.server.RemoteRef);
descriptor: (Ljava/lang/Class;Ljava/rmi/server/RemoteRef;)Ljava/rmi/server/RemoteStub;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "_Stub"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
iconst_0
aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
2: astore 3
start local 3 3: aload 3
getstatic sun.rmi.server.Util.stubConsParamTypes:[Ljava/lang/Class;
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
astore 4
start local 4 4: aload 4
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.rmi.server.RemoteStub
5: areturn
end local 4 end local 3 6: StackMap locals: java.lang.Class java.rmi.server.RemoteRef java.lang.String
StackMap stack: java.lang.ClassNotFoundException
astore 3
start local 3 7: new java.rmi.StubNotFoundException
dup
8: new java.lang.StringBuilder
dup
ldc "Stub class not found: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
9: invokespecial java.rmi.StubNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 10: StackMap locals:
StackMap stack: java.lang.NoSuchMethodException
astore 3
start local 3 11: new java.rmi.StubNotFoundException
dup
12: new java.lang.StringBuilder
dup
ldc "Stub class missing constructor: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
13: invokespecial java.rmi.StubNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 14: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 3
start local 3 15: new java.rmi.StubNotFoundException
dup
16: new java.lang.StringBuilder
dup
ldc "Can't create instance of stub class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
17: invokespecial java.rmi.StubNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 18: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 3
start local 3 19: new java.rmi.StubNotFoundException
dup
20: new java.lang.StringBuilder
dup
ldc "Stub class constructor not public: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
21: invokespecial java.rmi.StubNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 22: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 3
start local 3 23: new java.rmi.StubNotFoundException
dup
24: new java.lang.StringBuilder
dup
ldc "Exception creating instance of stub class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
25: invokespecial java.rmi.StubNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 26: StackMap locals:
StackMap stack: java.lang.ClassCastException
astore 3
start local 3 27: new java.rmi.StubNotFoundException
dup
28: new java.lang.StringBuilder
dup
ldc "Stub class not instance of RemoteStub: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
29: invokespecial java.rmi.StubNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 remoteClass Ljava/lang/Class<*>;
0 30 1 ref Ljava/rmi/server/RemoteRef;
1 30 2 stubname Ljava/lang/String;
3 6 3 stubcl Ljava/lang/Class<*>;
4 6 4 cons Ljava/lang/reflect/Constructor<*>;
7 10 3 e Ljava/lang/ClassNotFoundException;
11 14 3 e Ljava/lang/NoSuchMethodException;
15 18 3 e Ljava/lang/InstantiationException;
19 22 3 e Ljava/lang/IllegalAccessException;
23 26 3 e Ljava/lang/reflect/InvocationTargetException;
27 30 3 e Ljava/lang/ClassCastException;
Exception table:
from to target type
1 5 6 Class java.lang.ClassNotFoundException
1 5 10 Class java.lang.NoSuchMethodException
1 5 14 Class java.lang.InstantiationException
1 5 18 Class java.lang.IllegalAccessException
1 5 22 Class java.lang.reflect.InvocationTargetException
1 5 26 Class java.lang.ClassCastException
Exceptions:
throws java.rmi.StubNotFoundException
Signature: (Ljava/lang/Class<*>;Ljava/rmi/server/RemoteRef;)Ljava/rmi/server/RemoteStub;
MethodParameters:
Name Flags
remoteClass
ref
static java.rmi.server.Skeleton createSkeleton(java.rmi.Remote);
descriptor: (Ljava/rmi/Remote;)Ljava/rmi/server/Skeleton;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic sun.rmi.server.Util.getRemoteClass:(Ljava/lang/Class;)Ljava/lang/Class;
astore 1
start local 1 1: goto 8
end local 1 StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
2: pop
3: new java.rmi.server.SkeletonNotFoundException
dup
4: new java.lang.StringBuilder
dup
ldc "object does not implement a remote interface: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.rmi.server.SkeletonNotFoundException.<init>:(Ljava/lang/String;)V
athrow
start local 1 8: StackMap locals: java.lang.Class
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "_Skel"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 9: aload 2
iconst_0
aload 1
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 3
start local 3 10: aload 3
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast java.rmi.server.Skeleton
11: areturn
end local 3 12: StackMap locals: java.rmi.Remote java.lang.Class java.lang.String
StackMap stack: java.lang.ClassNotFoundException
astore 3
start local 3 13: new java.rmi.server.SkeletonNotFoundException
dup
new java.lang.StringBuilder
dup
ldc "Skeleton class not found: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
14: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
15: invokespecial java.rmi.server.SkeletonNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 16: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 3
start local 3 17: new java.rmi.server.SkeletonNotFoundException
dup
new java.lang.StringBuilder
dup
ldc "Can't create skeleton: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
18: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
19: invokespecial java.rmi.server.SkeletonNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 20: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 3
start local 3 21: new java.rmi.server.SkeletonNotFoundException
dup
new java.lang.StringBuilder
dup
ldc "No public constructor: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
22: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
23: invokespecial java.rmi.server.SkeletonNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 24: StackMap locals:
StackMap stack: java.lang.ClassCastException
astore 3
start local 3 25: new java.rmi.server.SkeletonNotFoundException
dup
26: new java.lang.StringBuilder
dup
ldc "Skeleton not of correct class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
27: invokespecial java.rmi.server.SkeletonNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 object Ljava/rmi/Remote;
1 2 1 cl Ljava/lang/Class<*>;
8 28 1 cl Ljava/lang/Class<*>;
9 28 2 skelname Ljava/lang/String;
10 12 3 skelcl Ljava/lang/Class<*>;
13 16 3 ex Ljava/lang/ClassNotFoundException;
17 20 3 ex Ljava/lang/InstantiationException;
21 24 3 ex Ljava/lang/IllegalAccessException;
25 28 3 ex Ljava/lang/ClassCastException;
Exception table:
from to target type
0 1 2 Class java.lang.ClassNotFoundException
9 11 12 Class java.lang.ClassNotFoundException
9 11 16 Class java.lang.InstantiationException
9 11 20 Class java.lang.IllegalAccessException
9 11 24 Class java.lang.ClassCastException
Exceptions:
throws java.rmi.server.SkeletonNotFoundException
MethodParameters:
Name Flags
object
public static long computeMethodHash(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=9, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: new java.io.ByteArrayOutputStream
dup
bipush 127
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
astore 3
start local 3 2: ldc "SHA"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 4
start local 4 3: new java.io.DataOutputStream
dup
4: new java.security.DigestOutputStream
dup
aload 3
aload 4
invokespecial java.security.DigestOutputStream.<init>:(Ljava/io/OutputStream;Ljava/security/MessageDigest;)V
5: invokespecial java.io.DataOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 5
start local 5 6: aload 0
invokestatic sun.rmi.server.Util.getMethodNameAndDescriptor:(Ljava/lang/reflect/Method;)Ljava/lang/String;
astore 6
start local 6 7: getstatic sun.rmi.server.Util.serverRefLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.VERBOSE:Ljava/util/logging/Level;
invokevirtual sun.rmi.runtime.Log.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 11
8: getstatic sun.rmi.server.Util.serverRefLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.VERBOSE:Ljava/util/logging/Level;
9: new java.lang.StringBuilder
dup
ldc "string used for method hash: \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
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;
10: invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
11: StackMap locals: java.lang.reflect.Method long java.io.ByteArrayOutputStream java.security.MessageDigest java.io.DataOutputStream java.lang.String
StackMap stack:
aload 5
aload 6
invokevirtual java.io.DataOutputStream.writeUTF:(Ljava/lang/String;)V
12: aload 5
invokevirtual java.io.DataOutputStream.flush:()V
13: aload 4
invokevirtual java.security.MessageDigest.digest:()[B
astore 7
start local 7 14: iconst_0
istore 8
start local 8 15: goto 18
16: StackMap locals: byte[] int
StackMap stack:
lload 1
aload 7
iload 8
baload
sipush 255
iand
i2l
iload 8
bipush 8
imul
lshl
ladd
lstore 1
17: iinc 8 1
StackMap locals:
StackMap stack:
18: iload 8
bipush 8
aload 7
arraylength
invokestatic java.lang.Math.min:(II)I
if_icmplt 16
end local 8 end local 7 end local 6 end local 5 end local 4 19: goto 24
StackMap locals: java.lang.reflect.Method long java.io.ByteArrayOutputStream
StackMap stack: java.io.IOException
20: pop
21: ldc -1
lstore 1
goto 24
22: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 4
start local 4 23: new java.lang.SecurityException
dup
aload 4
invokevirtual java.security.NoSuchAlgorithmException.getMessage:()Ljava/lang/String;
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
end local 4 24: StackMap locals:
StackMap stack:
lload 1
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 m Ljava/lang/reflect/Method;
1 25 1 hash J
2 25 3 sink Ljava/io/ByteArrayOutputStream;
3 19 4 md Ljava/security/MessageDigest;
6 19 5 out Ljava/io/DataOutputStream;
7 19 6 s Ljava/lang/String;
14 19 7 hasharray [B
15 19 8 i I
23 24 4 complain Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
2 19 20 Class java.io.IOException
2 19 22 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
m
private static java.lang.String getMethodNameAndDescriptor(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: aload 1
bipush 40
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
2: aload 0
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 7
5: StackMap locals: java.lang.StringBuilder java.lang.Class[] int
StackMap stack:
aload 1
aload 2
iload 3
aaload
invokestatic sun.rmi.server.Util.getTypeDescriptor:(Ljava/lang/Class;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
aload 2
arraylength
if_icmplt 5
end local 3 8: aload 1
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
9: aload 0
invokevirtual java.lang.reflect.Method.getReturnType:()Ljava/lang/Class;
astore 3
start local 3 10: aload 3
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpne 13
11: aload 1
bipush 86
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
12: goto 14
13: StackMap locals: java.lang.reflect.Method java.lang.StringBuilder java.lang.Class[] java.lang.Class
StackMap stack:
aload 1
aload 3
invokestatic sun.rmi.server.Util.getTypeDescriptor:(Ljava/lang/Class;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
14: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 m Ljava/lang/reflect/Method;
1 15 1 desc Ljava/lang/StringBuilder;
3 15 2 paramTypes [Ljava/lang/Class;
4 8 3 i I
10 15 3 returnType Ljava/lang/Class<*>;
MethodParameters:
Name Flags
m
private static java.lang.String getTypeDescriptor(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 20
1: aload 0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
if_acmpne 3
2: ldc "I"
areturn
3: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpne 5
4: ldc "Z"
areturn
5: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
if_acmpne 7
6: ldc "B"
areturn
7: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Character.TYPE:Ljava/lang/Class;
if_acmpne 9
8: ldc "C"
areturn
9: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Short.TYPE:Ljava/lang/Class;
if_acmpne 11
10: ldc "S"
areturn
11: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
if_acmpne 13
12: ldc "J"
areturn
13: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Float.TYPE:Ljava/lang/Class;
if_acmpne 15
14: ldc "F"
areturn
15: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Double.TYPE:Ljava/lang/Class;
if_acmpne 17
16: ldc "D"
areturn
17: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpne 19
18: ldc "V"
areturn
19: StackMap locals:
StackMap stack:
new java.lang.Error
dup
new java.lang.StringBuilder
dup
ldc "unrecognized primitive type: "
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;
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.isArray:()Z
ifeq 22
21: aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
areturn
22: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "L"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
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;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/String;
MethodParameters:
Name Flags
type
public static java.lang.String getUnqualifiedName(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c Ljava/lang/Class<*>;
1 2 1 binaryName Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/String;
MethodParameters:
Name Flags
c
private static java.lang.String lambda$0();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "sun.rmi.server.logLevel"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.Boolean lambda$1();
descriptor: ()Ljava/lang/Boolean;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "java.rmi.server.ignoreStubClasses"
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Util.java"
NestMembers:
sun.rmi.server.Util$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
sun.rmi.server.Util$1