public class com.sun.tools.sjavac.server.ServerMain
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.sjavac.server.ServerMain
super_class: java.lang.Object
{
private static com.sun.tools.sjavac.server.log.LazyInitFileLog errorLog;
descriptor: Lcom/sun/tools/sjavac/server/log/LazyInitFileLog;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
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 Lcom/sun/tools/sjavac/server/ServerMain;
public static int run(java.lang.String[]);
descriptor: ([Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=1
start local 0 0: new com.sun.tools.sjavac.server.log.LazyInitFileLog
dup
ldc "server.log"
invokespecial com.sun.tools.sjavac.server.log.LazyInitFileLog.<init>:(Ljava/lang/String;)V
dup
putstatic com.sun.tools.sjavac.server.ServerMain.errorLog:Lcom/sun/tools/sjavac/server/log/LazyInitFileLog;
invokestatic com.sun.tools.sjavac.Log.setLogForCurrentThread:(Lcom/sun/tools/sjavac/Log;)V
1: getstatic com.sun.tools.sjavac.Log$Level.ERROR:Lcom/sun/tools/sjavac/Log$Level;
invokestatic com.sun.tools.sjavac.Log.setLogLevel:(Lcom/sun/tools/sjavac/Log$Level;)V
2: invokedynamic uncaughtException()Ljava/lang/Thread$UncaughtExceptionHandler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Thread;Ljava/lang/Throwable;)V
com/sun/tools/sjavac/server/ServerMain.lambda$0(Ljava/lang/Thread;Ljava/lang/Throwable;)V (6)
(Ljava/lang/Thread;Ljava/lang/Throwable;)V
invokestatic java.lang.Thread.setDefaultUncaughtExceptionHandler:(Ljava/lang/Thread$UncaughtExceptionHandler;)V
3: new java.io.PrintStream
dup
new com.sun.tools.sjavac.server.log.LoggingOutputStream
dup
getstatic java.lang.System.out:Ljava/io/PrintStream;
getstatic com.sun.tools.sjavac.Log$Level.INFO:Lcom/sun/tools/sjavac/Log$Level;
ldc "[stdout] "
invokespecial com.sun.tools.sjavac.server.log.LoggingOutputStream.<init>:(Ljava/io/OutputStream;Lcom/sun/tools/sjavac/Log$Level;Ljava/lang/String;)V
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
invokestatic java.lang.System.setOut:(Ljava/io/PrintStream;)V
4: new java.io.PrintStream
dup
new com.sun.tools.sjavac.server.log.LoggingOutputStream
dup
getstatic java.lang.System.err:Ljava/io/PrintStream;
getstatic com.sun.tools.sjavac.Log$Level.ERROR:Lcom/sun/tools/sjavac/Log$Level;
ldc "[stderr] "
invokespecial com.sun.tools.sjavac.server.log.LoggingOutputStream.<init>:(Ljava/io/OutputStream;Lcom/sun/tools/sjavac/Log$Level;Ljava/lang/String;)V
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
invokestatic java.lang.System.setErr:(Ljava/io/PrintStream;)V
5: aload 0
arraylength
iconst_1
if_icmple 8
6: ldc "When spawning a background server, only a single --startserver argument is allowed."
invokestatic com.sun.tools.sjavac.Log.error:(Ljava/lang/String;)V
7: getstatic com.sun.tools.javac.main.Main$Result.CMDERR:Lcom/sun/tools/javac/main/Main$Result;
getfield com.sun.tools.javac.main.Main$Result.exitCode:I
ireturn
8: StackMap locals:
StackMap stack:
new com.sun.tools.sjavac.server.SjavacServer
dup
aload 0
iconst_0
aaload
invokespecial com.sun.tools.sjavac.server.SjavacServer.<init>:(Ljava/lang/String;)V
astore 2
start local 2 9: aload 2
invokevirtual com.sun.tools.sjavac.server.SjavacServer.startServer:()I
istore 1
end local 2 start local 1 10: goto 14
end local 1 StackMap locals:
StackMap stack: java.lang.Exception
11: astore 2
start local 2 12: aload 2
invokevirtual java.lang.Exception.printStackTrace:()V
13: getstatic com.sun.tools.javac.main.Main$Result.ERROR:Lcom/sun/tools/javac/main/Main$Result;
getfield com.sun.tools.javac.main.Main$Result.exitCode:I
istore 1
end local 2 start local 1 14: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 args [Ljava/lang/String;
10 11 1 exitCode I
14 15 1 exitCode I
9 10 2 server Lcom/sun/tools/sjavac/server/SjavacServer;
12 14 2 ex Ljava/lang/Exception;
Exception table:
from to target type
8 10 11 Class java.io.IOException
8 10 11 Class java.lang.InterruptedException
MethodParameters:
Name Flags
args
public static com.sun.tools.sjavac.server.log.LazyInitFileLog getErrorLog();
descriptor: ()Lcom/sun/tools/sjavac/server/log/LazyInitFileLog;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.sun.tools.sjavac.server.ServerMain.errorLog:Lcom/sun/tools/sjavac/server/log/LazyInitFileLog;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$0(java.lang.Thread, java.lang.Throwable);
descriptor: (Ljava/lang/Thread;Ljava/lang/Throwable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.sun.tools.sjavac.server.ServerMain.errorLog:Lcom/sun/tools/sjavac/server/log/LazyInitFileLog;
invokestatic com.sun.tools.sjavac.Log.setLogForCurrentThread:(Lcom/sun/tools/sjavac/Log;)V
1: aload 1
invokestatic com.sun.tools.sjavac.Log.error:(Ljava/lang/Throwable;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 t Ljava/lang/Thread;
0 3 1 e Ljava/lang/Throwable;
}
SourceFile: "ServerMain.java"
InnerClasses:
public final Result = com.sun.tools.javac.main.Main$Result of com.sun.tools.javac.main.Main
public final Level = com.sun.tools.sjavac.Log$Level of com.sun.tools.sjavac.Log
public abstract UncaughtExceptionHandler = java.lang.Thread$UncaughtExceptionHandler of java.lang.Thread
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles