public class java.rmi.server.RemoteObjectInvocationHandler extends java.rmi.server.RemoteObject implements java.lang.reflect.InvocationHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.rmi.server.RemoteObjectInvocationHandler
super_class: java.rmi.server.RemoteObject
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final java.rmi.server.RemoteObjectInvocationHandler$MethodToHash_Maps methodToHash_Maps;
descriptor: Ljava/rmi/server/RemoteObjectInvocationHandler$MethodToHash_Maps;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.rmi.server.RemoteObjectInvocationHandler$MethodToHash_Maps
dup
invokespecial java.rmi.server.RemoteObjectInvocationHandler$MethodToHash_Maps.<init>:()V
1: putstatic java.rmi.server.RemoteObjectInvocationHandler.methodToHash_Maps:Ljava/rmi/server/RemoteObjectInvocationHandler$MethodToHash_Maps;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.rmi.server.RemoteRef);
descriptor: (Ljava/rmi/server/RemoteRef;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.rmi.server.RemoteObject.<init>:(Ljava/rmi/server/RemoteRef;)V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
3: StackMap locals: java.rmi.server.RemoteObjectInvocationHandler java.rmi.server.RemoteRef
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/rmi/server/RemoteObjectInvocationHandler;
0 4 1 ref Ljava/rmi/server/RemoteRef;
MethodParameters:
Name Flags
ref
public java.lang.Object invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]);
descriptor: (Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic java.lang.reflect.Proxy.isProxyClass:(Ljava/lang/Class;)Z
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "not a proxy"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.lang.reflect.Proxy.getInvocationHandler:(Ljava/lang/Object;)Ljava/lang/reflect/InvocationHandler;
aload 0
if_acmpeq 4
3: new java.lang.IllegalArgumentException
dup
ldc "handler mismatch"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
ldc Ljava/lang/Object;
if_acmpne 6
5: aload 0
aload 1
aload 2
aload 3
invokevirtual java.rmi.server.RemoteObjectInvocationHandler.invokeObjectMethod:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
ldc "finalize"
aload 2
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
aload 2
invokevirtual java.lang.reflect.Method.getParameterCount:()I
ifne 8
7: aconst_null
areturn
8: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokevirtual java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/rmi/server/RemoteObjectInvocationHandler;
0 9 1 proxy Ljava/lang/Object;
0 9 2 method Ljava/lang/reflect/Method;
0 9 3 args [Ljava/lang/Object;
Exceptions:
throws java.lang.Throwable
MethodParameters:
Name Flags
proxy
method
args
private java.lang.Object invokeObjectMethod(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]);
descriptor: (Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
astore 4
start local 4 1: aload 4
ldc "hashCode"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: aload 0
invokevirtual java.rmi.server.RemoteObjectInvocationHandler.hashCode:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 4
ldc "equals"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
4: aload 3
iconst_0
aaload
astore 5
start local 5 5: aload 1
aload 5
if_acmpeq 12
6: aload 5
ifnull 11
7: aload 5
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic java.lang.reflect.Proxy.isProxyClass:(Ljava/lang/Class;)Z
ifeq 11
8: aload 5
invokestatic java.lang.reflect.Proxy.getInvocationHandler:(Ljava/lang/Object;)Ljava/lang/reflect/InvocationHandler;
dup
astore 6
start local 6 9: instanceof java.rmi.server.RemoteObjectInvocationHandler
ifeq 11
10: aload 0
aload 6
invokevirtual java.rmi.server.RemoteObjectInvocationHandler.equals:(Ljava/lang/Object;)Z
ifne 12
end local 6 11: StackMap locals: java.lang.Object
StackMap stack:
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
StackMap locals:
StackMap stack:
12: iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 5 13: StackMap locals:
StackMap stack:
aload 4
ldc "toString"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
14: aload 0
aload 1
invokevirtual java.rmi.server.RemoteObjectInvocationHandler.proxyToString:(Ljava/lang/Object;)Ljava/lang/String;
areturn
15: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
16: new java.lang.StringBuilder
dup
ldc "unexpected Object method: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljava/rmi/server/RemoteObjectInvocationHandler;
0 18 1 proxy Ljava/lang/Object;
0 18 2 method Ljava/lang/reflect/Method;
0 18 3 args [Ljava/lang/Object;
1 18 4 name Ljava/lang/String;
5 13 5 obj Ljava/lang/Object;
9 11 6 hdlr Ljava/lang/reflect/InvocationHandler;
MethodParameters:
Name Flags
proxy
method
args
private java.lang.Object invokeRemoteMethod(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]);
descriptor: (Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
instanceof java.rmi.Remote
ifne 4
1: new java.lang.IllegalArgumentException
dup
2: ldc "proxy not Remote instance"
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
astore 4
start local 4 5: ldc Ljava/rmi/Remote;
aload 4
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 7
6: new java.rmi.RemoteException
dup
new java.lang.StringBuilder
dup
ldc "Method is not Remote: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "::"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.rmi.RemoteException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.Class
StackMap stack:
aload 0
getfield java.rmi.server.RemoteObjectInvocationHandler.ref:Ljava/rmi/server/RemoteRef;
aload 1
checkcast java.rmi.Remote
aload 2
aload 3
8: aload 2
invokestatic java.rmi.server.RemoteObjectInvocationHandler.getMethodHash:(Ljava/lang/reflect/Method;)J
9: invokeinterface java.rmi.server.RemoteRef.invoke:(Ljava/rmi/Remote;Ljava/lang/reflect/Method;[Ljava/lang/Object;J)Ljava/lang/Object;
10: areturn
end local 4 11: StackMap locals: java.rmi.server.RemoteObjectInvocationHandler java.lang.Object java.lang.reflect.Method java.lang.Object[]
StackMap stack: java.lang.Exception
astore 4
start local 4 12: aload 4
instanceof java.lang.RuntimeException
ifne 29
13: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 5
start local 5 14: aload 5
aload 2
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
15: aload 2
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
16: invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 2
17: goto 21
StackMap locals: java.rmi.server.RemoteObjectInvocationHandler java.lang.Object java.lang.reflect.Method java.lang.Object[] java.lang.Exception java.lang.Class
StackMap stack: java.lang.NoSuchMethodException
18: astore 6
start local 6 19: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
aload 6
invokevirtual java.lang.IllegalArgumentException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
20: checkcast java.lang.IllegalArgumentException
athrow
end local 6 21: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 6
start local 6 22: aload 2
invokevirtual java.lang.reflect.Method.getExceptionTypes:()[Ljava/lang/Class;
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 27
StackMap locals: java.rmi.server.RemoteObjectInvocationHandler java.lang.Object java.lang.reflect.Method java.lang.Object[] java.lang.Exception java.lang.Class java.lang.Class top int int java.lang.Class[]
StackMap stack:
23: aload 10
iload 8
aaload
astore 7
start local 7 24: aload 7
aload 6
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 26
25: aload 4
athrow
end local 7 26: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
27: iload 8
iload 9
if_icmplt 23
28: new java.rmi.UnexpectedException
dup
ldc "unexpected exception"
aload 4
invokespecial java.rmi.UnexpectedException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
astore 4
end local 6 end local 5 29: StackMap locals: java.rmi.server.RemoteObjectInvocationHandler java.lang.Object java.lang.reflect.Method java.lang.Object[] java.lang.Exception
StackMap stack:
aload 4
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Ljava/rmi/server/RemoteObjectInvocationHandler;
0 30 1 proxy Ljava/lang/Object;
0 30 2 method Ljava/lang/reflect/Method;
0 30 3 args [Ljava/lang/Object;
5 11 4 decl Ljava/lang/Class<*>;
12 30 4 e Ljava/lang/Exception;
14 29 5 cl Ljava/lang/Class<*>;
19 21 6 nsme Ljava/lang/NoSuchMethodException;
22 29 6 thrownType Ljava/lang/Class<*>;
24 26 7 declaredType Ljava/lang/Class<*>;
Exception table:
from to target type
0 10 11 Class java.lang.Exception
14 17 18 Class java.lang.NoSuchMethodException
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
proxy
method
args
private java.lang.String proxyToString(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
astore 2
start local 2 1: aload 2
arraylength
ifne 3
2: new java.lang.StringBuilder
dup
ldc "Proxy["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
3: StackMap locals: java.lang.Class[]
StackMap stack:
aload 2
iconst_0
aaload
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 3
start local 3 4: aload 3
ldc "java.rmi.Remote"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 2
arraylength
iconst_1
if_icmple 6
5: aload 2
iconst_1
aaload
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 3
6: StackMap locals: java.lang.String
StackMap stack:
aload 3
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 4
start local 4 7: iload 4
iflt 9
8: aload 3
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
9: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Proxy["
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;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)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 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/rmi/server/RemoteObjectInvocationHandler;
0 10 1 proxy Ljava/lang/Object;
1 10 2 interfaces [Ljava/lang/Class;
4 10 3 iface Ljava/lang/String;
7 10 4 dot I
MethodParameters:
Name Flags
proxy
private void readObjectNoData();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.io.InvalidObjectException
dup
new java.lang.StringBuilder
dup
ldc "no data in stream; class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: 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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokespecial java.io.InvalidObjectException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/rmi/server/RemoteObjectInvocationHandler;
Exceptions:
throws java.io.InvalidObjectException
private static long getMethodHash(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.rmi.server.RemoteObjectInvocationHandler.methodToHash_Maps:Ljava/rmi/server/RemoteObjectInvocationHandler$MethodToHash_Maps;
aload 0
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
invokevirtual java.rmi.server.RemoteObjectInvocationHandler$MethodToHash_Maps.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.util.Map
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
method
}
SourceFile: "RemoteObjectInvocationHandler.java"
NestMembers:
java.rmi.server.RemoteObjectInvocationHandler$MethodToHash_Maps java.rmi.server.RemoteObjectInvocationHandler$MethodToHash_Maps$1
InnerClasses:
private MethodToHash_Maps = java.rmi.server.RemoteObjectInvocationHandler$MethodToHash_Maps of java.rmi.server.RemoteObjectInvocationHandler