public class ch.qos.logback.core.helpers.ThrowableToStringArray
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.helpers.ThrowableToStringArray
super_class: java.lang.Object
{
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 Lch/qos/logback/core/helpers/ThrowableToStringArray;
public static java.lang.String[] convert(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)[Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
aconst_null
invokestatic ch.qos.logback.core.helpers.ThrowableToStringArray.extract:(Ljava/util/List;Ljava/lang/Throwable;[Ljava/lang/StackTraceElement;)V
2: aload 1
iconst_0
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 t Ljava/lang/Throwable;
1 3 1 strList Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
t
private static void extract(java.util.List<java.lang.String>, java.lang.Throwable, java.lang.StackTraceElement[]);
descriptor: (Ljava/util/List;Ljava/lang/Throwable;[Ljava/lang/StackTraceElement;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.Throwable.getStackTrace:()[Ljava/lang/StackTraceElement;
astore 3
start local 3 1: aload 3
aload 2
invokestatic ch.qos.logback.core.helpers.ThrowableToStringArray.findNumberOfCommonFrames:([Ljava/lang/StackTraceElement;[Ljava/lang/StackTraceElement;)I
istore 4
start local 4 2: aload 0
aload 1
aload 2
invokestatic ch.qos.logback.core.helpers.ThrowableToStringArray.formatFirstLine:(Ljava/lang/Throwable;[Ljava/lang/StackTraceElement;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: iconst_0
istore 5
start local 5 4: goto 7
5: StackMap locals: java.lang.StackTraceElement[] int int
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "\tat "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
iload 5
aaload
invokevirtual java.lang.StackTraceElement.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
aload 3
arraylength
iload 4
isub
if_icmplt 5
end local 5 8: iload 4
ifeq 10
9: aload 0
new java.lang.StringBuilder
dup
ldc "\t... "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " common frames omitted"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 5
start local 5 11: aload 5
ifnull 13
12: aload 0
aload 5
aload 3
invokestatic ch.qos.logback.core.helpers.ThrowableToStringArray.extract:(Ljava/util/List;Ljava/lang/Throwable;[Ljava/lang/StackTraceElement;)V
13: StackMap locals: java.lang.Throwable
StackMap stack:
return
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 14 0 strList Ljava/util/List<Ljava/lang/String;>;
0 14 1 t Ljava/lang/Throwable;
0 14 2 parentSTE [Ljava/lang/StackTraceElement;
1 14 3 ste [Ljava/lang/StackTraceElement;
2 14 4 numberOfcommonFrames I
4 8 5 i I
11 14 5 cause Ljava/lang/Throwable;
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/lang/Throwable;[Ljava/lang/StackTraceElement;)V
MethodParameters:
Name Flags
strList
t
parentSTE
private static java.lang.String formatFirstLine(java.lang.Throwable, java.lang.StackTraceElement[]);
descriptor: (Ljava/lang/Throwable;[Ljava/lang/StackTraceElement;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: ldc ""
astore 2
start local 2 1: aload 1
ifnull 3
2: ldc "Caused by: "
astore 2
3: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
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;
astore 3
start local 3 4: aload 0
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
ifnull 6
5: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
6: StackMap locals: java.lang.String
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 t Ljava/lang/Throwable;
0 7 1 parentSTE [Ljava/lang/StackTraceElement;
1 7 2 prefix Ljava/lang/String;
4 7 3 result Ljava/lang/String;
MethodParameters:
Name Flags
t
parentSTE
private static int findNumberOfCommonFrames(java.lang.StackTraceElement[], java.lang.StackTraceElement[]);
descriptor: ([Ljava/lang/StackTraceElement;[Ljava/lang/StackTraceElement;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
arraylength
iconst_1
isub
istore 2
start local 2 3: aload 1
arraylength
iconst_1
isub
istore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 10
6: StackMap locals: int int int
StackMap stack:
aload 0
iload 2
aaload
aload 1
iload 3
aaload
invokevirtual java.lang.StackTraceElement.equals:(Ljava/lang/Object;)Z
ifeq 11
7: iinc 4 1
8: iinc 2 -1
9: iinc 3 -1
10: StackMap locals:
StackMap stack:
iload 2
iflt 11
iload 3
ifge 6
11: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 ste [Ljava/lang/StackTraceElement;
0 12 1 parentSTE [Ljava/lang/StackTraceElement;
3 12 2 steIndex I
4 12 3 parentIndex I
5 12 4 count I
MethodParameters:
Name Flags
ste
parentSTE
}
SourceFile: "ThrowableToStringArray.java"