public class com.sun.tools.sjavac.server.log.LazyInitFileLog extends com.sun.tools.sjavac.Log
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.sjavac.server.log.LazyInitFileLog
super_class: com.sun.tools.sjavac.Log
{
java.lang.String baseFilename;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.nio.file.Path destination;
descriptor: Ljava/nio/file/Path;
flags: (0x0000)
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aconst_null
invokespecial com.sun.tools.sjavac.Log.<init>:(Ljava/io/Writer;Ljava/io/Writer;)V
1: aload 0
aconst_null
putfield com.sun.tools.sjavac.server.log.LazyInitFileLog.destination:Ljava/nio/file/Path;
2: aload 0
aload 1
putfield com.sun.tools.sjavac.server.log.LazyInitFileLog.baseFilename:Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/sjavac/server/log/LazyInitFileLog;
0 4 1 baseFilename Ljava/lang/String;
MethodParameters:
Name Flags
baseFilename
protected void printLogMsg(com.sun.tools.sjavac.Log$Level, java.lang.String);
descriptor: (Lcom/sun/tools/sjavac/Log$Level;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.tools.sjavac.server.log.LazyInitFileLog.out:Ljava/io/PrintWriter;
ifnonnull 3
aload 0
aload 1
invokevirtual com.sun.tools.sjavac.server.log.LazyInitFileLog.isLevelLogged:(Lcom/sun/tools/sjavac/Log$Level;)Z
ifeq 3
1: aload 0
aload 0
invokevirtual com.sun.tools.sjavac.server.log.LazyInitFileLog.getAvailableDestination:()Ljava/nio/file/Path;
putfield com.sun.tools.sjavac.server.log.LazyInitFileLog.destination:Ljava/nio/file/Path;
2: aload 0
aload 0
new java.io.PrintWriter
dup
new java.io.FileWriter
dup
aload 0
getfield com.sun.tools.sjavac.server.log.LazyInitFileLog.destination:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokespecial java.io.FileWriter.<init>:(Ljava/io/File;)V
iconst_1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;Z)V
dup_x1
putfield com.sun.tools.sjavac.server.log.LazyInitFileLog.err:Ljava/io/PrintWriter;
putfield com.sun.tools.sjavac.server.log.LazyInitFileLog.out:Ljava/io/PrintWriter;
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokespecial com.sun.tools.sjavac.Log.printLogMsg:(Lcom/sun/tools/sjavac/Log$Level;Ljava/lang/String;)V
4: goto 8
StackMap locals:
StackMap stack: java.io.IOException
5: astore 3
start local 3 6: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "IO error occurred: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.io.IOException.getMessage:()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
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Original message: ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
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
end local 3 8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/tools/sjavac/server/log/LazyInitFileLog;
0 9 1 msgLevel Lcom/sun/tools/sjavac/Log$Level;
0 9 2 msg Ljava/lang/String;
6 8 3 e Ljava/io/IOException;
Exception table:
from to target type
0 4 5 Class java.io.IOException
MethodParameters:
Name Flags
msgLevel
msg
private java.nio.file.Path getAvailableDestination();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.sjavac.server.log.LazyInitFileLog.baseFilename:Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 1: iconst_1
istore 2
start local 2 2: goto 4
3: StackMap locals: java.nio.file.Path int
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
getfield com.sun.tools.sjavac.server.log.LazyInitFileLog.baseFilename:Ljava/lang/String;
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;
iload 2
iinc 2 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
4: StackMap locals:
StackMap stack:
aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 3
5: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/tools/sjavac/server/log/LazyInitFileLog;
1 6 1 p Ljava/nio/file/Path;
2 6 2 i I
public java.nio.file.Path getLogDestination();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.sjavac.server.log.LazyInitFileLog.destination:Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/sjavac/server/log/LazyInitFileLog;
}
SourceFile: "LazyInitFileLog.java"
InnerClasses:
public final Level = com.sun.tools.sjavac.Log$Level of com.sun.tools.sjavac.Log