public class org.apache.catalina.startup.CatalinaProperties
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.catalina.startup.CatalinaProperties
super_class: java.lang.Object
{
private static final org.apache.juli.logging.Log log;
descriptor: Lorg/apache/juli/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static java.util.Properties properties;
descriptor: Ljava/util/Properties;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/catalina/startup/CatalinaProperties;
invokestatic org.apache.juli.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/juli/logging/Log;
putstatic org.apache.catalina.startup.CatalinaProperties.log:Lorg/apache/juli/logging/Log;
1: aconst_null
putstatic org.apache.catalina.startup.CatalinaProperties.properties:Ljava/util/Properties;
2: invokestatic org.apache.catalina.startup.CatalinaProperties.loadProperties:()V
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lorg/apache/catalina/startup/CatalinaProperties;
public static java.lang.String getProperty(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.catalina.startup.CatalinaProperties.properties:Ljava/util/Properties;
aload 0
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private static void loadProperties();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=0
0: aconst_null
astore 0
start local 0 1: ldc "catalina.properties"
astore 1
start local 1 2: ldc "catalina.config"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 3: aload 2
ifnull 11
4: aload 2
bipush 47
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpne 7
5: aload 2
astore 1
6: goto 11
7: StackMap locals: java.io.InputStream java.lang.String java.lang.String
StackMap stack:
new java.net.URL
dup
aload 2
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 0
end local 2 8: goto 11
StackMap locals: java.io.InputStream java.lang.String
StackMap stack: java.lang.Throwable
9: astore 2
start local 2 10: aload 2
invokestatic org.apache.catalina.startup.CatalinaProperties.handleThrowable:(Ljava/lang/Throwable;)V
end local 2 11: StackMap locals:
StackMap stack:
aload 0
ifnonnull 19
12: new java.io.File
dup
invokestatic org.apache.catalina.startup.Bootstrap.getCatalinaBase:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
start local 2 13: new java.io.File
dup
aload 2
ldc "conf"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 3
start local 3 14: new java.io.File
dup
aload 3
aload 1
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 4
start local 4 15: new java.io.FileInputStream
dup
aload 4
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 0
end local 4 end local 3 end local 2 16: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
17: astore 2
start local 2 18: aload 2
invokestatic org.apache.catalina.startup.CatalinaProperties.handleThrowable:(Ljava/lang/Throwable;)V
end local 2 19: StackMap locals:
StackMap stack:
aload 0
ifnonnull 26
20: ldc Lorg/apache/catalina/startup/CatalinaProperties;
21: ldc "/org/apache/catalina/startup/catalina.properties"
22: invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 0
23: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
24: astore 2
start local 2 25: aload 2
invokestatic org.apache.catalina.startup.CatalinaProperties.handleThrowable:(Ljava/lang/Throwable;)V
end local 2 26: StackMap locals:
StackMap stack:
aload 0
ifnull 48
27: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
putstatic org.apache.catalina.startup.CatalinaProperties.properties:Ljava/util/Properties;
28: getstatic org.apache.catalina.startup.CatalinaProperties.properties:Ljava/util/Properties;
aload 0
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
29: goto 44
StackMap locals:
StackMap stack: java.lang.Throwable
30: astore 2
start local 2 31: aload 2
invokestatic org.apache.catalina.startup.CatalinaProperties.handleThrowable:(Ljava/lang/Throwable;)V
32: getstatic org.apache.catalina.startup.CatalinaProperties.log:Lorg/apache/juli/logging/Log;
aload 2
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
end local 2 33: aload 0
invokevirtual java.io.InputStream.close:()V
34: goto 48
StackMap locals:
StackMap stack: java.io.IOException
35: astore 4
start local 4 36: getstatic org.apache.catalina.startup.CatalinaProperties.log:Lorg/apache/juli/logging/Log;
ldc "Could not close catalina properties file"
aload 4
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 4 37: goto 48
38: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
39: aload 0
invokevirtual java.io.InputStream.close:()V
40: goto 43
StackMap locals: java.io.InputStream java.lang.String top java.lang.Throwable
StackMap stack: java.io.IOException
41: astore 4
start local 4 42: getstatic org.apache.catalina.startup.CatalinaProperties.log:Lorg/apache/juli/logging/Log;
ldc "Could not close catalina properties file"
aload 4
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 4 43: StackMap locals:
StackMap stack:
aload 3
athrow
44: StackMap locals: java.io.InputStream java.lang.String
StackMap stack:
aload 0
invokevirtual java.io.InputStream.close:()V
45: goto 48
StackMap locals:
StackMap stack: java.io.IOException
46: astore 4
start local 4 47: getstatic org.apache.catalina.startup.CatalinaProperties.log:Lorg/apache/juli/logging/Log;
ldc "Could not close catalina properties file"
aload 4
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 4 48: StackMap locals:
StackMap stack:
aload 0
ifnonnull 51
49: getstatic org.apache.catalina.startup.CatalinaProperties.log:Lorg/apache/juli/logging/Log;
ldc "Failed to load catalina properties file"
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
50: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
putstatic org.apache.catalina.startup.CatalinaProperties.properties:Ljava/util/Properties;
51: StackMap locals:
StackMap stack:
getstatic org.apache.catalina.startup.CatalinaProperties.properties:Ljava/util/Properties;
invokevirtual java.util.Properties.propertyNames:()Ljava/util/Enumeration;
astore 2
start local 2 52: goto 57
53: StackMap locals: java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 54: getstatic org.apache.catalina.startup.CatalinaProperties.properties:Ljava/util/Properties;
aload 3
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 55: aload 4
ifnull 57
56: aload 3
aload 4
invokestatic java.lang.System.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
end local 4 end local 3 57: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 53
58: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 59 0 is Ljava/io/InputStream;
2 59 1 fileName Ljava/lang/String;
3 8 2 configUrl Ljava/lang/String;
10 11 2 t Ljava/lang/Throwable;
13 16 2 home Ljava/io/File;
14 16 3 conf Ljava/io/File;
15 16 4 propsFile Ljava/io/File;
18 19 2 t Ljava/lang/Throwable;
25 26 2 t Ljava/lang/Throwable;
31 33 2 t Ljava/lang/Throwable;
36 37 4 ioe Ljava/io/IOException;
42 43 4 ioe Ljava/io/IOException;
47 48 4 ioe Ljava/io/IOException;
52 59 2 enumeration Ljava/util/Enumeration<*>;
54 57 3 name Ljava/lang/String;
55 57 4 value Ljava/lang/String;
Exception table:
from to target type
2 8 9 Class java.lang.Throwable
12 16 17 Class java.lang.Throwable
20 23 24 Class java.lang.Throwable
27 29 30 Class java.lang.Throwable
33 34 35 Class java.io.IOException
27 33 38 any
39 40 41 Class java.io.IOException
44 45 46 Class java.io.IOException
private static void handleThrowable(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof java.lang.ThreadDeath
ifeq 2
1: aload 0
checkcast java.lang.ThreadDeath
athrow
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.VirtualMachineError
ifeq 4
3: aload 0
checkcast java.lang.VirtualMachineError
athrow
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
}
SourceFile: "CatalinaProperties.java"