public class org.apache.catalina.util.ServerInfo
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.catalina.util.ServerInfo
super_class: java.lang.Object
{
private static final java.lang.String serverInfo;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String serverBuilt;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String serverNumber;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=7, args_size=0
0: aconst_null
astore 0
start local 0 1: aconst_null
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 3
start local 3 4: aconst_null
astore 4
aconst_null
astore 5
5: ldc Lorg/apache/catalina/util/ServerInfo;
6: ldc "/org/apache/catalina/util/ServerInfo.properties"
7: invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 6
start local 6 8: aload 3
aload 6
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
9: aload 3
ldc "server.info"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
10: aload 3
ldc "server.built"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
11: aload 3
ldc "server.number"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
12: aload 6
ifnull 20
aload 6
invokevirtual java.io.InputStream.close:()V
goto 20
StackMap locals: java.lang.String java.lang.String java.lang.String java.util.Properties java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
13: astore 4
aload 6
ifnull 14
aload 6
invokevirtual java.io.InputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
14: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 5
aload 4
ifnonnull 16
aload 5
astore 4
goto 17
StackMap locals:
StackMap stack:
16: aload 4
aload 5
if_acmpeq 17
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 4
athrow
StackMap locals: java.lang.String java.lang.String java.lang.String java.util.Properties
StackMap stack: java.lang.Throwable
18: astore 4
start local 4 19: aload 4
invokestatic org.apache.tomcat.util.ExceptionUtils.handleThrowable:(Ljava/lang/Throwable;)V
end local 4 20: StackMap locals:
StackMap stack:
aload 0
ifnull 21
aload 0
ldc "Apache Tomcat/@VERSION@"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 22
21: StackMap locals:
StackMap stack:
ldc "Apache Tomcat/9.0.x-dev"
astore 0
22: StackMap locals:
StackMap stack:
aload 1
ifnull 23
aload 1
ldc "@VERSION_BUILT@"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
23: StackMap locals:
StackMap stack:
ldc "unknown"
astore 1
24: StackMap locals:
StackMap stack:
aload 2
ifnull 25
aload 2
ldc "@VERSION_NUMBER@"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 26
25: StackMap locals:
StackMap stack:
ldc "9.0.x"
astore 2
26: StackMap locals:
StackMap stack:
aload 0
putstatic org.apache.catalina.util.ServerInfo.serverInfo:Ljava/lang/String;
27: aload 1
putstatic org.apache.catalina.util.ServerInfo.serverBuilt:Ljava/lang/String;
28: aload 2
putstatic org.apache.catalina.util.ServerInfo.serverNumber:Ljava/lang/String;
end local 3 end local 2 end local 1 end local 0 29: return
LocalVariableTable:
Start End Slot Name Signature
1 29 0 info Ljava/lang/String;
2 29 1 built Ljava/lang/String;
3 29 2 number Ljava/lang/String;
4 29 3 props Ljava/util/Properties;
8 14 6 is Ljava/io/InputStream;
19 20 4 t Ljava/lang/Throwable;
Exception table:
from to target type
8 12 13 any
5 15 15 any
4 18 18 Class java.lang.Throwable
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/util/ServerInfo;
public static java.lang.String getServerInfo();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.catalina.util.ServerInfo.serverInfo:Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.String getServerBuilt();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.catalina.util.ServerInfo.serverBuilt:Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.String getServerNumber();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.catalina.util.ServerInfo.serverNumber:Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Server version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic org.apache.catalina.util.ServerInfo.getServerInfo:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Server built: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic org.apache.catalina.util.ServerInfo.getServerBuilt:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Server number: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic org.apache.catalina.util.ServerInfo.getServerNumber:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "OS Name: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "OS Version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: ldc "os.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Architecture: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
10: ldc "os.arch"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "JVM Version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
13: ldc "java.runtime.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "JVM Vendor: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
16: ldc "java.vm.vendor"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
18: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 args [Ljava/lang/String;
MethodParameters:
Name Flags
args
}
SourceFile: "ServerInfo.java"