public final class org.apache.logging.log4j.util.Constants
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.logging.log4j.util.Constants
super_class: java.lang.Object
{
public static final boolean IS_WEB_APP;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final boolean ENABLE_THREADLOCALS;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int JAVA_MAJOR_VERSION;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int MAX_REUSABLE_MESSAGE_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String LOG4J2_DEBUG;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "log4j2.debug"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: invokestatic org.apache.logging.log4j.util.PropertiesUtil.getProperties:()Lorg/apache/logging/log4j/util/PropertiesUtil;
1: ldc "log4j2.is.webapp"
ldc "javax.servlet.Servlet"
invokestatic org.apache.logging.log4j.util.Constants.isClassAvailable:(Ljava/lang/String;)Z
2: invokevirtual org.apache.logging.log4j.util.PropertiesUtil.getBooleanProperty:(Ljava/lang/String;Z)Z
putstatic org.apache.logging.log4j.util.Constants.IS_WEB_APP:Z
3: getstatic org.apache.logging.log4j.util.Constants.IS_WEB_APP:Z
ifne 8
invokestatic org.apache.logging.log4j.util.PropertiesUtil.getProperties:()Lorg/apache/logging/log4j/util/PropertiesUtil;
4: ldc "log4j2.enable.threadlocals"
iconst_1
5: invokevirtual org.apache.logging.log4j.util.PropertiesUtil.getBooleanProperty:(Ljava/lang/String;Z)Z
6: ifeq 8
7: iconst_1
goto 9
StackMap locals:
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: putstatic org.apache.logging.log4j.util.Constants.ENABLE_THREADLOCALS:Z
10: invokestatic org.apache.logging.log4j.util.Constants.getMajorVersion:()I
putstatic org.apache.logging.log4j.util.Constants.JAVA_MAJOR_VERSION:I
11: ldc "log4j.maxReusableMsgSize"
sipush 518
invokestatic org.apache.logging.log4j.util.Constants.size:(Ljava/lang/String;I)I
putstatic org.apache.logging.log4j.util.Constants.MAX_REUSABLE_MESSAGE_SIZE:I
12: return
LocalVariableTable:
Start End Slot Name Signature
private static int size(java.lang.String, int);
descriptor: (Ljava/lang/String;I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic org.apache.logging.log4j.util.PropertiesUtil.getProperties:()Lorg/apache/logging/log4j/util/PropertiesUtil;
aload 0
iload 1
invokevirtual org.apache.logging.log4j.util.PropertiesUtil.getIntegerProperty:(Ljava/lang/String;I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 property Ljava/lang/String;
0 1 1 defaultValue I
MethodParameters:
Name Flags
property final
defaultValue final
private static boolean isClassAvailable(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.apache.logging.log4j.util.LoaderUtil.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
2: ireturn
3: StackMap locals:
StackMap stack: java.lang.Throwable
pop
4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 className Ljava/lang/String;
Exception table:
from to target type
0 2 3 Class java.lang.Throwable
MethodParameters:
Name Flags
className final
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 Lorg/apache/logging/log4j/util/Constants;
private static int getMajorVersion();
descriptor: ()I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "java.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic org.apache.logging.log4j.util.Constants.getMajorVersion:(Ljava/lang/String;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
static int getMajorVersion(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
ldc "-|\\."
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 1: aload 1
iconst_0
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 3
start local 3 2: iload 3
iconst_1
if_icmpeq 3
iconst_1
goto 4
StackMap locals: java.lang.String java.lang.String[] top int
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 2
start local 2 5: iload 2
ifeq 8
6: iload 3
7: ireturn
8: StackMap locals: java.lang.String java.lang.String[] int int
StackMap stack:
aload 1
iconst_1
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
9: ireturn
end local 3 end local 2 10: StackMap locals: java.lang.String java.lang.String[]
StackMap stack: java.lang.Exception
pop
11: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 version Ljava/lang/String;
1 12 1 parts [Ljava/lang/String;
5 10 2 isJEP223 Z
2 10 3 token I
Exception table:
from to target type
1 7 10 Class java.lang.Exception
8 9 10 Class java.lang.Exception
MethodParameters:
Name Flags
version final
}
SourceFile: "Constants.java"