public class jdk.jpackage.internal.DeployParams
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jpackage.internal.DeployParams
super_class: java.lang.Object
{
java.lang.String targetFormat;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.nio.file.Path outdir;
descriptor: Ljava/nio/file/Path;
flags: (0x0000)
java.util.Map<java.lang.String, ? super java.lang.Object> bundlerArguments;
descriptor: Ljava/util/Map;
flags: (0x0000)
Signature: Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
private static final java.util.Set<java.lang.String> multi_args;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new java.util.TreeSet
dup
bipush 7
anewarray java.lang.String
dup
iconst_0
1: getstatic jdk.jpackage.internal.StandardBundlerParam.JAVA_OPTIONS:Ljdk/jpackage/internal/StandardBundlerParam;
invokevirtual jdk.jpackage.internal.StandardBundlerParam.getID:()Ljava/lang/String;
aastore
dup
iconst_1
2: getstatic jdk.jpackage.internal.StandardBundlerParam.ARGUMENTS:Ljdk/jpackage/internal/StandardBundlerParam;
invokevirtual jdk.jpackage.internal.StandardBundlerParam.getID:()Ljava/lang/String;
aastore
dup
iconst_2
3: getstatic jdk.jpackage.internal.StandardBundlerParam.MODULE_PATH:Ljdk/jpackage/internal/BundlerParamInfo;
invokevirtual jdk.jpackage.internal.BundlerParamInfo.getID:()Ljava/lang/String;
aastore
dup
iconst_3
4: getstatic jdk.jpackage.internal.StandardBundlerParam.ADD_MODULES:Ljdk/jpackage/internal/BundlerParamInfo;
invokevirtual jdk.jpackage.internal.BundlerParamInfo.getID:()Ljava/lang/String;
aastore
dup
iconst_4
5: getstatic jdk.jpackage.internal.StandardBundlerParam.LIMIT_MODULES:Ljdk/jpackage/internal/BundlerParamInfo;
invokevirtual jdk.jpackage.internal.BundlerParamInfo.getID:()Ljava/lang/String;
aastore
dup
iconst_5
6: getstatic jdk.jpackage.internal.StandardBundlerParam.FILE_ASSOCIATIONS:Ljdk/jpackage/internal/StandardBundlerParam;
invokevirtual jdk.jpackage.internal.StandardBundlerParam.getID:()Ljava/lang/String;
aastore
dup
bipush 6
7: getstatic jdk.jpackage.internal.StandardBundlerParam.JLINK_OPTIONS:Ljdk/jpackage/internal/StandardBundlerParam;
invokevirtual jdk.jpackage.internal.StandardBundlerParam.getID:()Ljava/lang/String;
aastore
8: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.TreeSet.<init>:(Ljava/util/Collection;)V
putstatic jdk.jpackage.internal.DeployParams.multi_args:Ljava/util/Set;
9: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield jdk.jpackage.internal.DeployParams.targetFormat:Ljava/lang/String;
2: aload 0
aconst_null
putfield jdk.jpackage.internal.DeployParams.outdir:Ljava/nio/file/Path;
3: aload 0
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
putfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jpackage/internal/DeployParams;
public void setOutput(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.jpackage.internal.DeployParams.outdir:Ljava/nio/file/Path;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/DeployParams;
0 2 1 output Ljava/nio/file/Path;
MethodParameters:
Name Flags
output
java.util.List<java.nio.file.Path> expandFileset(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/util/List;
flags: (0x0000)
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 2
start local 2 1: aload 1
invokestatic java.nio.file.Files.isSymbolicLink:(Ljava/nio/file/Path;)Z
ifne 17
2: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 16
3: aconst_null
astore 3
aconst_null
astore 4
4: aload 1
invokestatic java.nio.file.Files.list:(Ljava/nio/file/Path;)Ljava/util/stream/Stream;
astore 5
start local 5 5: aload 5
invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
astore 6
start local 6 6: aload 6
ifnull 9
aload 6
invokeinterface java.util.List.size:()I
ifle 9
7: aload 6
aload 0
aload 2
invokedynamic accept(Ljdk/jpackage/internal/DeployParams;Ljava/util/List;)Ljava/util/function/Consumer;
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/Object;)V
jdk/jpackage/internal/DeployParams.lambda$0(Ljava/util/List;Ljava/nio/file/Path;)V (7)
(Ljava/nio/file/Path;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
8: goto 10
9: StackMap locals: jdk.jpackage.internal.DeployParams java.nio.file.Path java.util.List java.lang.Throwable java.lang.Throwable java.util.stream.Stream java.util.List
StackMap stack:
aload 2
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 10: StackMap locals:
StackMap stack:
aload 5
ifnull 17
aload 5
invokeinterface java.util.stream.Stream.close:()V
goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 3
aload 5
ifnull 12
aload 5
invokeinterface java.util.stream.Stream.close:()V
end local 5 StackMap locals:
StackMap stack:
12: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 4
aload 3
ifnonnull 14
aload 4
astore 3
goto 15
StackMap locals:
StackMap stack:
14: aload 3
aload 4
if_acmpeq 15
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
15: aload 3
athrow
16: StackMap locals:
StackMap stack:
aload 2
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
17: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/jpackage/internal/DeployParams;
0 18 1 root Ljava/nio/file/Path;
1 18 2 files Ljava/util/List<Ljava/nio/file/Path;>;
5 12 5 stream Ljava/util/stream/Stream<Ljava/nio/file/Path;>;
6 10 6 children Ljava/util/List<Ljava/nio/file/Path;>;
Exception table:
from to target type
5 10 11 any
4 13 13 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/nio/file/Path;)Ljava/util/List<Ljava/nio/file/Path;>;
MethodParameters:
Name Flags
root
static void validateName(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=5, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
1: ldc "ERR_InvalidAppName"
goto 3
StackMap locals:
StackMap stack:
2: ldc "ERR_InvalidSLName"
3: StackMap locals:
StackMap stack: java.lang.String
astore 2
start local 2 4: aload 0
ifnonnull 8
5: iload 1
ifeq 7
6: return
7: StackMap locals: java.lang.String
StackMap stack:
new jdk.jpackage.internal.PackagerException
dup
aload 2
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.length:()I
ifeq 9
aload 0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 92
if_icmpne 10
9: StackMap locals:
StackMap stack:
new jdk.jpackage.internal.PackagerException
dup
aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 11: aload 3
invokeinterface java.nio.file.Path.getNameCount:()I
iconst_1
if_icmpeq 15
12: new jdk.jpackage.internal.PackagerException
dup
aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
end local 3 13: StackMap locals:
StackMap stack: java.nio.file.InvalidPathException
astore 3
start local 3 14: new jdk.jpackage.internal.PackagerException
dup
aload 3
aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/String;)V
athrow
end local 3 15: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 16: goto 25
17: StackMap locals: int
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 18: iload 4
bipush 32
if_icmplt 19
iload 4
bipush 126
if_icmple 22
19: StackMap locals: int
StackMap stack:
iload 4
invokestatic java.lang.Character.isISOControl:(C)Z
ifne 21
20: iload 4
invokestatic java.lang.Character.isWhitespace:(C)Z
ifeq 24
21: StackMap locals:
StackMap stack:
new jdk.jpackage.internal.PackagerException
dup
aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
iload 4
bipush 34
if_icmpeq 23
iload 4
bipush 37
if_icmpne 24
23: StackMap locals:
StackMap stack:
new jdk.jpackage.internal.PackagerException
dup
aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
end local 4 24: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
25: iload 3
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 17
end local 3 26: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 s Ljava/lang/String;
0 27 1 forApp Z
4 27 2 exceptionKey Ljava/lang/String;
11 13 3 p Ljava/nio/file/Path;
14 15 3 ipe Ljava/nio/file/InvalidPathException;
16 26 3 i I
18 24 4 a C
Exception table:
from to target type
10 13 13 Class java.nio.file.InvalidPathException
Exceptions:
throws jdk.jpackage.internal.PackagerException
MethodParameters:
Name Flags
s
forApp
public void validate();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=15, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
1: getstatic jdk.jpackage.internal.Arguments$CLIOptions.MODULE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
2: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 3
iconst_1
goto 4
StackMap locals:
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 1
start local 1 5: aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
6: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_APP_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
7: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 8
iconst_1
goto 9
StackMap locals: int
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: istore 2
start local 2 10: aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
11: getstatic jdk.jpackage.internal.Arguments$CLIOptions.APPCLASS:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
12: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
pop
13: aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
14: getstatic jdk.jpackage.internal.Arguments$CLIOptions.MAIN_JAR:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
15: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 16
iconst_1
goto 17
StackMap locals: int
StackMap stack:
16: iconst_0
StackMap locals:
StackMap stack: int
17: istore 3
start local 3 18: aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
19: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_RUNTIME_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
20: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 21
iconst_1
goto 22
StackMap locals: int
StackMap stack:
21: iconst_0
StackMap locals:
StackMap stack: int
22: istore 4
start local 4 23: aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
24: getstatic jdk.jpackage.internal.Arguments$CLIOptions.INPUT:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
25: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 26
iconst_1
goto 27
StackMap locals: int
StackMap stack:
26: iconst_0
StackMap locals:
StackMap stack: int
27: istore 5
start local 5 28: aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
29: getstatic jdk.jpackage.internal.Arguments$CLIOptions.MODULE_PATH:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
30: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 31
iconst_1
goto 32
StackMap locals: int
StackMap stack:
31: iconst_0
StackMap locals:
StackMap stack: int
32: istore 6
start local 6 33: aload 0
invokevirtual jdk.jpackage.internal.DeployParams.isTargetAppImage:()Z
ifne 36
34: iload 2
ifne 36
iload 1
ifne 36
iload 3
ifne 36
iload 4
ifeq 36
35: iconst_1
goto 37
StackMap locals: int
StackMap stack:
36: iconst_0
StackMap locals:
StackMap stack: int
37: istore 7
start local 7 38: aload 0
invokevirtual jdk.jpackage.internal.DeployParams.isTargetAppImage:()Z
ifeq 48
39: iload 1
ifeq 44
40: iload 6
ifne 58
iload 4
ifne 58
41: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_MissingArgument"
iconst_1
anewarray java.lang.String
dup
iconst_0
42: ldc "--runtime-image or --module-path"
43: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
44: StackMap locals: int
StackMap stack:
iload 5
ifne 58
45: new jdk.jpackage.internal.PackagerException
dup
46: ldc "ERR_MissingArgument"
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "--input"
47: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
48: StackMap locals:
StackMap stack:
iload 7
ifne 58
49: iload 1
ifeq 54
50: iload 6
ifne 58
iload 4
ifne 58
iload 2
ifne 58
51: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_MissingArgument"
iconst_1
anewarray java.lang.String
dup
iconst_0
52: ldc "--runtime-image, --module-path or --app-image"
53: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
54: StackMap locals:
StackMap stack:
iload 5
ifne 58
iload 2
ifne 58
55: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_MissingArgument"
iconst_1
anewarray java.lang.String
dup
iconst_0
56: ldc "--input or --app-image"
57: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
58: StackMap locals:
StackMap stack:
iload 1
ifne 60
iload 2
ifne 60
iload 7
ifne 60
iload 3
ifne 60
59: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_MissingArgument"
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "--main-jar"
aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
60: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
61: getstatic jdk.jpackage.internal.Arguments$CLIOptions.NAME:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
62: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 63: aload 8
iconst_1
invokestatic jdk.jpackage.internal.DeployParams.validateName:(Ljava/lang/String;Z)V
64: aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
65: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_APP_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
66: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 67: aload 9
ifnull 73
68: aload 9
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 10
start local 10 69: aload 10
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 72
70: aload 10
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.list:()[Ljava/lang/String;
ifnull 72
71: aload 10
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.list:()[Ljava/lang/String;
arraylength
ifne 73
72: StackMap locals: java.lang.String java.lang.String java.nio.file.Path
StackMap stack:
new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_AppImageNotExist"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 9
aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
end local 10 73: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
74: getstatic jdk.jpackage.internal.Arguments$CLIOptions.TEMP_ROOT:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
75: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 76: aload 10
ifnull 92
aload 10
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 92
77: aconst_null
astore 11
aconst_null
astore 12
78: aload 10
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_1
iconst_0
anewarray java.nio.file.FileVisitOption
invokestatic java.nio.file.Files.walk:(Ljava/nio/file/Path;I[Ljava/nio/file/FileVisitOption;)Ljava/util/stream/Stream;
astore 13
start local 13 79: aload 13
invokedynamic apply()Ljava/util/function/IntFunction;
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:
(I)Ljava/lang/Object;
jdk/jpackage/internal/DeployParams.lambda$1(I)[Ljava/nio/file/Path; (6)
(I)[Ljava/nio/file/Path;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast java.nio.file.Path[]
astore 14
start local 14 80: aload 14
ifnull 84
aload 14
arraylength
iconst_1
if_icmple 84
81: new jdk.jpackage.internal.PackagerException
dup
82: ldc "ERR_BuildRootInvalid"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 10
83: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
end local 14 84: StackMap locals: jdk.jpackage.internal.DeployParams int int int int int int int java.lang.String java.lang.String java.lang.String java.lang.Throwable java.lang.Throwable java.util.stream.Stream
StackMap stack:
aload 13
ifnull 92
aload 13
invokeinterface java.util.stream.Stream.close:()V
goto 92
StackMap locals:
StackMap stack: java.lang.Throwable
85: astore 11
aload 13
ifnull 86
aload 13
invokeinterface java.util.stream.Stream.close:()V
end local 13 StackMap locals:
StackMap stack:
86: aload 11
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
87: astore 12
aload 11
ifnonnull 88
aload 12
astore 11
goto 89
StackMap locals:
StackMap stack:
88: aload 11
aload 12
if_acmpeq 89
aload 11
aload 12
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
89: aload 11
athrow
StackMap locals: jdk.jpackage.internal.DeployParams int int int int int int int java.lang.String java.lang.String java.lang.String
StackMap stack: java.io.IOException
90: astore 11
start local 11 91: new jdk.jpackage.internal.PackagerException
dup
aload 11
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 11 92: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
93: getstatic jdk.jpackage.internal.Arguments$CLIOptions.RESOURCE_DIR:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
94: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 11
start local 11 95: aload 11
ifnull 101
96: aload 11
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 101
97: new jdk.jpackage.internal.PackagerException
dup
98: ldc "message.resource-dir-does-not-exist"
iconst_2
anewarray java.lang.String
dup
iconst_0
99: getstatic jdk.jpackage.internal.Arguments$CLIOptions.RESOURCE_DIR:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
aastore
dup
iconst_1
aload 11
100: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
101: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
102: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_RUNTIME_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
103: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 12
start local 12 104: aload 12
ifnull 111
105: aload 12
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 111
106: new jdk.jpackage.internal.PackagerException
dup
107: ldc "message.runtime-image-dir-does-not-exist"
iconst_2
anewarray java.lang.String
dup
iconst_0
108: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_RUNTIME_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
aastore
dup
iconst_1
109: aload 12
110: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
111: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
112: getstatic jdk.jpackage.internal.Arguments$CLIOptions.LICENSE_FILE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
113: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 13
start local 13 114: aload 13
ifnull 117
115: aload 13
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 117
116: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_LicenseFileNotExit"
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;)V
athrow
117: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
118: getstatic jdk.jpackage.internal.Arguments$CLIOptions.ICON:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
119: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 14
start local 14 120: aload 14
ifnull 125
121: aload 14
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 125
122: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_IconFileNotExit"
iconst_1
anewarray java.lang.String
dup
iconst_0
123: aload 14
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
124: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
125: StackMap locals: java.lang.String
StackMap stack:
return
end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 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 126 0 this Ljdk/jpackage/internal/DeployParams;
5 126 1 hasModule Z
10 126 2 hasAppImage Z
18 126 3 hasMain Z
23 126 4 hasRuntimeImage Z
28 126 5 hasInput Z
33 126 6 hasModulePath Z
38 126 7 runtimeInstaller Z
63 126 8 name Ljava/lang/String;
67 126 9 appImage Ljava/lang/String;
69 73 10 appImageDir Ljava/nio/file/Path;
76 126 10 root Ljava/lang/String;
79 86 13 stream Ljava/util/stream/Stream<Ljava/nio/file/Path;>;
80 84 14 contents [Ljava/nio/file/Path;
91 92 11 ioe Ljava/io/IOException;
95 126 11 resources Ljava/lang/String;
104 126 12 runtime Ljava/lang/String;
114 126 13 license Ljava/lang/String;
120 126 14 icon Ljava/lang/String;
Exception table:
from to target type
79 84 85 any
78 87 87 any
77 90 90 Class java.io.IOException
Exceptions:
throws jdk.jpackage.internal.PackagerException
void setTargetFormat(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.jpackage.internal.DeployParams.targetFormat:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/DeployParams;
0 2 1 t Ljava/lang/String;
MethodParameters:
Name Flags
t
java.lang.String getTargetFormat();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.DeployParams.targetFormat:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/DeployParams;
boolean isTargetAppImage();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "app-image"
aload 0
getfield jdk.jpackage.internal.DeployParams.targetFormat:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/DeployParams;
public void addBundleArgument(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.jpackage.internal.DeployParams.multi_args:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 24
1: aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 2: aload 3
instanceof java.lang.String
ifeq 14
aload 2
instanceof java.lang.String
ifeq 14
3: ldc "\n\n"
astore 4
start local 4 4: aload 1
getstatic jdk.jpackage.internal.StandardBundlerParam.MODULE_PATH:Ljdk/jpackage/internal/BundlerParamInfo;
invokevirtual jdk.jpackage.internal.BundlerParamInfo.getID:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
5: getstatic java.io.File.pathSeparator:Ljava/lang/String;
astore 4
6: goto 12
StackMap locals: java.lang.Object java.lang.String
StackMap stack:
7: aload 1
8: getstatic jdk.jpackage.internal.StandardBundlerParam.ADD_MODULES:Ljdk/jpackage/internal/BundlerParamInfo;
invokevirtual jdk.jpackage.internal.BundlerParamInfo.getID:()Ljava/lang/String;
9: invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
10: ifeq 12
11: ldc ","
astore 4
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
aload 1
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 13: goto 25
StackMap locals:
StackMap stack:
14: aload 3
instanceof java.util.List
ifeq 17
aload 2
instanceof java.util.List
ifeq 17
15: aload 3
checkcast java.util.List
aload 2
checkcast java.util.List
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
16: goto 25
StackMap locals:
StackMap stack:
17: aload 3
instanceof java.util.Map
ifeq 22
18: aload 2
instanceof java.lang.String
ifeq 22
aload 2
checkcast java.lang.String
ldc "="
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 22
19: aload 2
checkcast java.lang.String
ldc "="
iconst_2
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 4
start local 4 20: aload 3
checkcast java.util.Map
aload 4
iconst_0
aaload
aload 4
iconst_1
aaload
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 21: goto 25
22: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 23: goto 25
24: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
25: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Ljdk/jpackage/internal/DeployParams;
0 26 1 key Ljava/lang/String;
0 26 2 value Ljava/lang/Object;
2 23 3 existingValue Ljava/lang/Object;
4 13 4 delim Ljava/lang/String;
20 21 4 mapValues [Ljava/lang/String;
MethodParameters:
Name Flags
key
value
jdk.jpackage.internal.BundleParams getBundleParams();
descriptor: ()Ljdk/jpackage/internal/BundleParams;
flags: (0x0000)
Code:
stack=5, locals=3, args_size=1
start local 0 0: new jdk.jpackage.internal.BundleParams
dup
invokespecial jdk.jpackage.internal.BundleParams.<init>:()V
astore 1
start local 1 1: new java.util.TreeMap
invokespecial java.util.TreeMap.<init>:()V
2: new java.util.TreeMap
invokespecial java.util.TreeMap.<init>:()V
3: new java.util.TreeSet
dup
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokespecial java.util.TreeSet.<init>:(Ljava/util/Collection;)V
astore 2
start local 2 4: aload 2
aload 1
invokevirtual jdk.jpackage.internal.BundleParams.getBundleParamsAsMap:()Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokevirtual java.util.TreeSet.retainAll:(Ljava/util/Collection;)Z
pop
5: aload 2
invokevirtual java.util.TreeSet.isEmpty:()Z
ifne 9
6: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Deploy Params and Bundler Arguments overlap in the following values:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: aload 2
invokevirtual java.util.TreeSet.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: jdk.jpackage.internal.BundleParams java.util.TreeSet
StackMap stack:
aload 1
aload 0
getfield jdk.jpackage.internal.DeployParams.bundlerArguments:Ljava/util/Map;
invokevirtual jdk.jpackage.internal.BundleParams.addAllBundleParams:(Ljava/util/Map;)V
10: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/jpackage/internal/DeployParams;
1 11 1 bundleParams Ljdk/jpackage/internal/BundleParams;
4 11 2 keys Ljava/util/TreeSet<Ljava/lang/String;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "DeployParams {output: }"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/DeployParams;
private void lambda$0(java.util.List, java.nio.file.Path);
descriptor: (Ljava/util/List;Ljava/nio/file/Path;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 2 0: aload 1
aload 0
aload 2
invokevirtual jdk.jpackage.internal.DeployParams.expandFileset:(Ljava/nio/file/Path;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 3
start local 3 3: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 4: StackMap locals:
StackMap stack:
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jpackage/internal/DeployParams;
0 5 2 f Ljava/nio/file/Path;
3 4 3 ex Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
private static java.nio.file.Path[] lambda$1(int);
descriptor: (I)[Ljava/nio/file/Path;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: iload 0
anewarray java.nio.file.Path
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "DeployParams.java"
NestMembers:
jdk.jpackage.internal.DeployParams$Template
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final CLIOptions = jdk.jpackage.internal.Arguments$CLIOptions of jdk.jpackage.internal.Arguments
Template = jdk.jpackage.internal.DeployParams$Template of jdk.jpackage.internal.DeployParams