public class jdk.incubator.jpackage.main.Main
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.incubator.jpackage.main.Main
super_class: java.lang.Object
{
private static final java.util.ResourceBundle I18N;
descriptor: Ljava/util/ResourceBundle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "jdk.incubator.jpackage.internal.resources.MainResources"
1: invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
putstatic jdk.incubator.jpackage.main.Main.I18N:Ljava/util/ResourceBundle;
2: return
LocalVariableTable:
Start End Slot Name Signature
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 Ljdk/incubator/jpackage/main/Main;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=1
start local 0 0: aconst_null
invokestatic jdk.incubator.jpackage.internal.Log.setLogger:(Ljdk/incubator/jpackage/internal/Log$Logger;)V
1: new jdk.incubator.jpackage.main.Main
dup
invokespecial jdk.incubator.jpackage.main.Main.<init>:()V
aload 0
invokevirtual jdk.incubator.jpackage.main.Main.execute:([Ljava/lang/String;)I
istore 1
start local 1 2: iload 1
invokestatic java.lang.System.exit:(I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 args [Ljava/lang/String;
2 4 1 status I
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
public int execute(java.io.PrintWriter, java.io.PrintWriter, java.lang.String[]);
descriptor: (Ljava/io/PrintWriter;Ljava/io/PrintWriter;[Ljava/lang/String;)I
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new jdk.incubator.jpackage.internal.Log$Logger
dup
invokespecial jdk.incubator.jpackage.internal.Log$Logger.<init>:()V
astore 4
start local 4 1: aload 4
aload 1
aload 2
invokevirtual jdk.incubator.jpackage.internal.Log$Logger.setPrintWriter:(Ljava/io/PrintWriter;Ljava/io/PrintWriter;)V
2: aload 4
invokestatic jdk.incubator.jpackage.internal.Log.setLogger:(Ljdk/incubator/jpackage/internal/Log$Logger;)V
3: aload 0
aload 3
invokevirtual jdk.incubator.jpackage.main.Main.execute:([Ljava/lang/String;)I
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/jpackage/main/Main;
0 4 1 out Ljava/io/PrintWriter;
0 4 2 err Ljava/io/PrintWriter;
0 4 3 args [Ljava/lang/String;
1 4 4 logger Ljdk/incubator/jpackage/internal/Log$Logger;
MethodParameters:
Name Flags
out
err
args
private int execute(java.lang.String[]);
descriptor: ([Ljava/lang/String;)I
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.incubator.jpackage.main.CommandLine.parse:([Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 1: goto 14
end local 2 StackMap locals:
StackMap stack: java.io.FileNotFoundException
2: astore 3
start local 3 3: getstatic jdk.incubator.jpackage.main.Main.I18N:Ljava/util/ResourceBundle;
4: ldc "ERR_CannotParseOptions"
5: invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
6: aload 3
invokevirtual java.io.FileNotFoundException.getMessage:()Ljava/lang/String;
aastore
7: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.incubator.jpackage.internal.Log.error:(Ljava/lang/String;)V
8: invokestatic jdk.incubator.jpackage.internal.Log.flush:()V
9: iconst_1
ireturn
end local 3 10: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 11: aload 3
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokestatic jdk.incubator.jpackage.internal.Log.error:(Ljava/lang/String;)V
12: invokestatic jdk.incubator.jpackage.internal.Log.flush:()V
13: iconst_1
ireturn
end local 3 start local 2 14: StackMap locals: java.lang.String[]
StackMap stack:
aload 2
arraylength
ifne 17
15: iconst_1
invokestatic jdk.incubator.jpackage.internal.CLIHelp.showHelp:(Z)V
16: goto 29
StackMap locals:
StackMap stack:
17: aload 0
aload 2
invokevirtual jdk.incubator.jpackage.main.Main.hasHelp:([Ljava/lang/String;)Z
ifeq 22
18: aload 0
aload 2
invokevirtual jdk.incubator.jpackage.main.Main.hasVersion:([Ljava/lang/String;)Z
ifeq 20
19: new java.lang.StringBuilder
dup
ldc "java.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jdk.incubator.jpackage.internal.Log.info:(Ljava/lang/String;)V
20: StackMap locals:
StackMap stack:
iconst_0
invokestatic jdk.incubator.jpackage.internal.CLIHelp.showHelp:(Z)V
21: goto 29
StackMap locals:
StackMap stack:
22: aload 0
aload 2
invokevirtual jdk.incubator.jpackage.main.Main.hasVersion:([Ljava/lang/String;)Z
ifeq 25
23: ldc "java.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic jdk.incubator.jpackage.internal.Log.info:(Ljava/lang/String;)V
24: goto 29
25: StackMap locals:
StackMap stack:
new jdk.incubator.jpackage.internal.Arguments
dup
aload 2
invokespecial jdk.incubator.jpackage.internal.Arguments.<init>:([Ljava/lang/String;)V
astore 3
start local 3 26: aload 3
invokevirtual jdk.incubator.jpackage.internal.Arguments.processArguments:()Z
ifne 29
27: invokestatic jdk.incubator.jpackage.internal.Log.flush:()V
28: iconst_1
ireturn
end local 3 29: StackMap locals:
StackMap stack:
invokestatic jdk.incubator.jpackage.internal.Log.flush:()V
30: iconst_0
ireturn
end local 2 31: StackMap locals: jdk.incubator.jpackage.main.Main java.lang.String[]
StackMap stack: java.lang.Throwable
astore 4
32: invokestatic jdk.incubator.jpackage.internal.Log.flush:()V
33: aload 4
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Ljdk/incubator/jpackage/main/Main;
0 34 1 args [Ljava/lang/String;
1 2 2 newArgs [Ljava/lang/String;
14 31 2 newArgs [Ljava/lang/String;
3 10 3 fnfe Ljava/io/FileNotFoundException;
11 14 3 ioe Ljava/io/IOException;
26 29 3 arguments Ljdk/incubator/jpackage/internal/Arguments;
Exception table:
from to target type
0 1 2 Class java.io.FileNotFoundException
0 1 10 Class java.io.IOException
0 8 31 any
10 12 31 any
14 27 31 any
MethodParameters:
Name Flags
args
private boolean hasHelp(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: jdk.incubator.jpackage.main.Main java.lang.String[] top int int java.lang.String[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: ldc "--help"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 3
ldc "-h"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: StackMap locals: jdk.incubator.jpackage.main.Main java.lang.String[] java.lang.String int int java.lang.String[]
StackMap stack:
iconst_1
ireturn
end local 2 4: StackMap locals: jdk.incubator.jpackage.main.Main java.lang.String[] top int int java.lang.String[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 1
6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/jpackage/main/Main;
0 7 1 args [Ljava/lang/String;
2 4 2 a Ljava/lang/String;
MethodParameters:
Name Flags
args
private boolean hasVersion(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: jdk.incubator.jpackage.main.Main java.lang.String[] top int int java.lang.String[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: ldc "--version"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: iconst_1
ireturn
end local 2 4: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 1
6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/jpackage/main/Main;
0 7 1 args [Ljava/lang/String;
2 4 2 a Ljava/lang/String;
MethodParameters:
Name Flags
args
}
SourceFile: "Main.java"
InnerClasses:
public Logger = jdk.incubator.jpackage.internal.Log$Logger of jdk.incubator.jpackage.internal.Log