public final class org.apache.catalina.util.CustomObjectInputStream extends java.io.ObjectInputStream
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.catalina.util.CustomObjectInputStream
super_class: java.io.ObjectInputStream
{
private static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.WeakHashMap<java.lang.ClassLoader, java.util.Set<java.lang.String>> reportedClassCache;
descriptor: Ljava/util/WeakHashMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/WeakHashMap<Ljava/lang/ClassLoader;Ljava/util/Set<Ljava/lang/String;>;>;
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<java.lang.String> reportedClasses;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private final org.apache.juli.logging.Log log;
descriptor: Lorg/apache/juli/logging/Log;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.regex.Pattern allowedClassNamePattern;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String allowedClassNameFilter;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean warnOnFailure;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/catalina/util/CustomObjectInputStream;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.catalina.util.CustomObjectInputStream.sm:Lorg/apache/tomcat/util/res/StringManager;
1: new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
2: putstatic org.apache.catalina.util.CustomObjectInputStream.reportedClassCache:Ljava/util/WeakHashMap;
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.io.InputStream, java.lang.ClassLoader);
descriptor: (Ljava/io/InputStream;Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
aconst_null
iconst_0
invokespecial org.apache.catalina.util.CustomObjectInputStream.<init>:(Ljava/io/InputStream;Ljava/lang/ClassLoader;Lorg/apache/juli/logging/Log;Ljava/util/regex/Pattern;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/util/CustomObjectInputStream;
0 2 1 stream Ljava/io/InputStream;
0 2 2 classLoader Ljava/lang/ClassLoader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
classLoader
public void <init>(java.io.InputStream, java.lang.ClassLoader, org.apache.juli.logging.Log, java.util.regex.Pattern, boolean);
descriptor: (Ljava/io/InputStream;Ljava/lang/ClassLoader;Lorg/apache/juli/logging/Log;Ljava/util/regex/Pattern;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
invokespecial java.io.ObjectInputStream.<init>:(Ljava/io/InputStream;)V
1: aload 3
ifnonnull 5
aload 4
ifnull 5
iload 5
ifeq 5
2: new java.lang.IllegalArgumentException
dup
3: getstatic org.apache.catalina.util.CustomObjectInputStream.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "customObjectInputStream.logRequired"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
4: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: org.apache.catalina.util.CustomObjectInputStream java.io.InputStream java.lang.ClassLoader org.apache.juli.logging.Log java.util.regex.Pattern int
StackMap stack:
aload 0
aload 2
putfield org.apache.catalina.util.CustomObjectInputStream.classLoader:Ljava/lang/ClassLoader;
6: aload 0
aload 3
putfield org.apache.catalina.util.CustomObjectInputStream.log:Lorg/apache/juli/logging/Log;
7: aload 0
aload 4
putfield org.apache.catalina.util.CustomObjectInputStream.allowedClassNamePattern:Ljava/util/regex/Pattern;
8: aload 4
ifnonnull 11
9: aload 0
aconst_null
putfield org.apache.catalina.util.CustomObjectInputStream.allowedClassNameFilter:Ljava/lang/String;
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
aload 4
invokevirtual java.util.regex.Pattern.toString:()Ljava/lang/String;
putfield org.apache.catalina.util.CustomObjectInputStream.allowedClassNameFilter:Ljava/lang/String;
12: StackMap locals:
StackMap stack:
aload 0
iload 5
putfield org.apache.catalina.util.CustomObjectInputStream.warnOnFailure:Z
13: getstatic org.apache.catalina.util.CustomObjectInputStream.reportedClassCache:Ljava/util/WeakHashMap;
dup
astore 7
monitorenter
14: getstatic org.apache.catalina.util.CustomObjectInputStream.reportedClassCache:Ljava/util/WeakHashMap;
aload 2
invokevirtual java.util.WeakHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
astore 6
start local 6 15: aload 7
monitorexit
16: goto 19
end local 6 StackMap locals: org.apache.catalina.util.CustomObjectInputStream java.io.InputStream java.lang.ClassLoader org.apache.juli.logging.Log java.util.regex.Pattern int top java.util.WeakHashMap
StackMap stack: java.lang.Throwable
17: aload 7
monitorexit
18: athrow
start local 6 19: StackMap locals: org.apache.catalina.util.CustomObjectInputStream java.io.InputStream java.lang.ClassLoader org.apache.juli.logging.Log java.util.regex.Pattern int java.util.Set
StackMap stack:
aload 6
ifnonnull 29
20: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
invokestatic java.util.Collections.newSetFromMap:(Ljava/util/Map;)Ljava/util/Set;
astore 6
21: getstatic org.apache.catalina.util.CustomObjectInputStream.reportedClassCache:Ljava/util/WeakHashMap;
dup
astore 8
monitorenter
22: getstatic org.apache.catalina.util.CustomObjectInputStream.reportedClassCache:Ljava/util/WeakHashMap;
aload 2
aload 6
invokevirtual java.util.WeakHashMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
astore 7
start local 7 23: aload 8
monitorexit
24: goto 27
end local 7 StackMap locals: org.apache.catalina.util.CustomObjectInputStream java.io.InputStream java.lang.ClassLoader org.apache.juli.logging.Log java.util.regex.Pattern int java.util.Set top java.util.WeakHashMap
StackMap stack: java.lang.Throwable
25: aload 8
monitorexit
26: athrow
start local 7 27: StackMap locals: org.apache.catalina.util.CustomObjectInputStream java.io.InputStream java.lang.ClassLoader org.apache.juli.logging.Log java.util.regex.Pattern int java.util.Set java.util.Set
StackMap stack:
aload 7
ifnull 29
28: aload 7
astore 6
end local 7 29: StackMap locals:
StackMap stack:
aload 0
aload 6
putfield org.apache.catalina.util.CustomObjectInputStream.reportedClasses:Ljava/util/Set;
30: return
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 31 0 this Lorg/apache/catalina/util/CustomObjectInputStream;
0 31 1 stream Ljava/io/InputStream;
0 31 2 classLoader Ljava/lang/ClassLoader;
0 31 3 log Lorg/apache/juli/logging/Log;
0 31 4 allowedClassNamePattern Ljava/util/regex/Pattern;
0 31 5 warnOnFailure Z
15 17 6 reportedClasses Ljava/util/Set<Ljava/lang/String;>;
19 31 6 reportedClasses Ljava/util/Set<Ljava/lang/String;>;
23 25 7 original Ljava/util/Set<Ljava/lang/String;>;
27 29 7 original Ljava/util/Set<Ljava/lang/String;>;
Exception table:
from to target type
14 16 17 any
17 18 17 any
22 24 25 any
25 26 25 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
classLoader
log
allowedClassNamePattern
warnOnFailure
public java.lang.Class<?> resolveClass(java.io.ObjectStreamClass);
descriptor: (Ljava/io/ObjectStreamClass;)Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectStreamClass.getName:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.allowedClassNamePattern:Ljava/util/regex/Pattern;
ifnull 14
2: aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.allowedClassNamePattern:Ljava/util/regex/Pattern;
aload 2
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
istore 3
start local 3 3: iload 3
ifne 14
4: aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.warnOnFailure:Z
ifeq 5
aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.reportedClasses:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
ifeq 5
iconst_1
goto 6
StackMap locals: java.lang.String int
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 4
start local 4 7: getstatic org.apache.catalina.util.CustomObjectInputStream.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "customObjectInputStream.nomatch"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.allowedClassNameFilter:Ljava/lang/String;
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 8: iload 4
ifeq 11
9: aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.log:Lorg/apache/juli/logging/Log;
aload 5
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
10: goto 13
StackMap locals: int java.lang.String
StackMap stack:
11: aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 13
12: aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.log:Lorg/apache/juli/logging/Log;
aload 5
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
13: StackMap locals:
StackMap stack:
new java.io.InvalidClassException
dup
aload 5
invokespecial java.io.InvalidClassException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 end local 3 14: StackMap locals:
StackMap stack:
aload 2
iconst_0
aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.classLoader:Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
15: areturn
16: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
astore 3
start local 3 17: aload 0
aload 1
invokespecial java.io.ObjectInputStream.resolveClass:(Ljava/io/ObjectStreamClass;)Ljava/lang/Class;
18: areturn
19: StackMap locals: org.apache.catalina.util.CustomObjectInputStream java.io.ObjectStreamClass java.lang.String java.lang.ClassNotFoundException
StackMap stack: java.lang.ClassNotFoundException
pop
20: aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/apache/catalina/util/CustomObjectInputStream;
0 21 1 classDesc Ljava/io/ObjectStreamClass;
1 21 2 name Ljava/lang/String;
3 14 3 allowed Z
7 14 4 doLog Z
8 14 5 msg Ljava/lang/String;
17 21 3 e Ljava/lang/ClassNotFoundException;
Exception table:
from to target type
14 15 16 Class java.lang.ClassNotFoundException
17 18 19 Class java.lang.ClassNotFoundException
Exceptions:
throws java.lang.ClassNotFoundException, java.io.IOException
Signature: (Ljava/io/ObjectStreamClass;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
classDesc
protected java.lang.Class<?> resolveProxyClass(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
arraylength
anewarray java.lang.Class
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 5
3: StackMap locals: java.lang.Class[] int
StackMap stack:
aload 2
iload 3
aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.classLoader:Ljava/lang/ClassLoader;
aload 1
iload 3
aaload
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
aastore
4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
aload 1
arraylength
if_icmplt 3
end local 3 6: aload 0
getfield org.apache.catalina.util.CustomObjectInputStream.classLoader:Ljava/lang/ClassLoader;
aload 2
invokestatic java.lang.reflect.Proxy.getProxyClass:(Ljava/lang/ClassLoader;[Ljava/lang/Class;)Ljava/lang/Class;
astore 3
start local 3 7: aload 3
8: areturn
end local 3 9: StackMap locals: org.apache.catalina.util.CustomObjectInputStream java.lang.String[] java.lang.Class[]
StackMap stack: java.lang.IllegalArgumentException
astore 3
start local 3 10: new java.lang.ClassNotFoundException
dup
aconst_null
aload 3
invokespecial java.lang.ClassNotFoundException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/catalina/util/CustomObjectInputStream;
0 11 1 interfaces [Ljava/lang/String;
1 11 2 cinterfaces [Ljava/lang/Class;
2 6 3 i I
7 9 3 proxyClass Ljava/lang/Class<*>;
10 11 3 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
6 8 9 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
Signature: ([Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
interfaces
}
SourceFile: "CustomObjectInputStream.java"