public class jdk.jpackage.main.Main
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.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.jpackage.internal.resources.MainResources"
1: invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
putstatic jdk.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/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=4, locals=4, args_size=1
start local 0 0: new java.io.PrintWriter
dup
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;)V
astore 1
start local 1 1: new java.io.PrintWriter
dup
getstatic java.lang.System.err:Ljava/io/PrintStream;
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;)V
astore 2
start local 2 2: new jdk.jpackage.main.Main
dup
invokespecial jdk.jpackage.main.Main.<init>:()V
aload 1
aload 2
aload 0
invokevirtual jdk.jpackage.main.Main.execute:(Ljava/io/PrintWriter;Ljava/io/PrintWriter;[Ljava/lang/String;)I
istore 3
start local 3 3: iload 3
invokestatic java.lang.System.exit:(I)V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 args [Ljava/lang/String;
1 5 1 out Ljava/io/PrintWriter;
2 5 2 err Ljava/io/PrintWriter;
3 5 3 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=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokestatic jdk.jpackage.internal.Log.setPrintWriter:(Ljava/io/PrintWriter;Ljava/io/PrintWriter;)V
1: aload 3
invokestatic jdk.jpackage.main.CommandLine.parse:([Ljava/lang/String;)[Ljava/lang/String;
astore 4
start local 4 2: goto 15
end local 4 StackMap locals:
StackMap stack: java.io.FileNotFoundException
3: astore 5
start local 5 4: getstatic jdk.jpackage.main.Main.I18N:Ljava/util/ResourceBundle;
5: ldc "ERR_CannotParseOptions"
6: invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
7: aload 5
invokevirtual java.io.FileNotFoundException.getMessage:()Ljava/lang/String;
aastore
8: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.fatalError:(Ljava/lang/String;)V
9: invokestatic jdk.jpackage.internal.Log.flush:()V
10: iconst_1
ireturn
end local 5 11: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 12: aload 5
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.fatalError:(Ljava/lang/String;)V
13: invokestatic jdk.jpackage.internal.Log.flush:()V
14: iconst_1
ireturn
end local 5 start local 4 15: StackMap locals: java.lang.String[]
StackMap stack:
aload 4
arraylength
ifne 18
16: iconst_1
invokestatic jdk.jpackage.internal.CLIHelp.showHelp:(Z)V
17: goto 30
StackMap locals:
StackMap stack:
18: aload 0
aload 4
invokevirtual jdk.jpackage.main.Main.hasHelp:([Ljava/lang/String;)Z
ifeq 23
19: aload 0
aload 4
invokevirtual jdk.jpackage.main.Main.hasVersion:([Ljava/lang/String;)Z
ifeq 21
20: 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.jpackage.internal.Log.info:(Ljava/lang/String;)V
21: StackMap locals:
StackMap stack:
iconst_0
invokestatic jdk.jpackage.internal.CLIHelp.showHelp:(Z)V
22: goto 30
StackMap locals:
StackMap stack:
23: aload 0
aload 4
invokevirtual jdk.jpackage.main.Main.hasVersion:([Ljava/lang/String;)Z
ifeq 26
24: ldc "java.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.info:(Ljava/lang/String;)V
25: goto 30
26: StackMap locals:
StackMap stack:
new jdk.jpackage.internal.Arguments
dup
aload 4
invokespecial jdk.jpackage.internal.Arguments.<init>:([Ljava/lang/String;)V
astore 5
start local 5 27: aload 5
invokevirtual jdk.jpackage.internal.Arguments.processArguments:()Z
ifne 30
28: invokestatic jdk.jpackage.internal.Log.flush:()V
29: iconst_1
ireturn
end local 5 30: StackMap locals:
StackMap stack:
invokestatic jdk.jpackage.internal.Log.flush:()V
31: iconst_0
ireturn
end local 4 32: StackMap locals: jdk.jpackage.main.Main java.io.PrintWriter java.io.PrintWriter java.lang.String[]
StackMap stack: java.lang.Throwable
astore 6
33: invokestatic jdk.jpackage.internal.Log.flush:()V
34: aload 6
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Ljdk/jpackage/main/Main;
0 35 1 out Ljava/io/PrintWriter;
0 35 2 err Ljava/io/PrintWriter;
0 35 3 args [Ljava/lang/String;
2 3 4 newArgs [Ljava/lang/String;
15 32 4 newArgs [Ljava/lang/String;
4 11 5 fnfe Ljava/io/FileNotFoundException;
12 15 5 ioe Ljava/io/IOException;
27 30 5 arguments Ljdk/jpackage/internal/Arguments;
Exception table:
from to target type
1 2 3 Class java.io.FileNotFoundException
1 2 11 Class java.io.IOException
1 9 32 any
11 13 32 any
15 28 32 any
MethodParameters:
Name Flags
out
err
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.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.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.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/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.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/jpackage/main/Main;
0 7 1 args [Ljava/lang/String;
2 4 2 a Ljava/lang/String;
MethodParameters:
Name Flags
args
}
SourceFile: "Main.java"