final class jdk.jpackage.internal.ExecutableRebrander
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jpackage.internal.ExecutableRebrander
super_class: java.lang.Object
{
private static final java.util.ResourceBundle I18N;
descriptor: Ljava/util/ResourceBundle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String LAUNCHER_PROPERTIES_TEMPLATE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "WinLauncher.template"
private static final java.lang.String INSTALLER_PROPERTIES_TEMPLATE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "WinInstaller.template"
private static final java.lang.String INSTALLER_PROPERTIES_RESOURE_DIR_ID;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "WinInstaller.properties"
private java.util.List<jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction> extraActions;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "jdk.jpackage.internal.resources.WinResources"
1: invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
putstatic jdk.jpackage.internal.ExecutableRebrander.I18N:Ljava/util/ResourceBundle;
2: ldc "jpackage"
invokestatic java.lang.System.loadLibrary:(Ljava/lang/String;)V
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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/internal/ExecutableRebrander;
void rebrandInstaller(java.util.Map<java.lang.String, ? super java.lang.Object>, java.nio.file.Path);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.nio.file.Path.isAbsolute:()Z
ifne 3
1: aload 0
aload 1
aload 2
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.ExecutableRebrander.rebrandInstaller:(Ljava/util/Map;Ljava/nio/file/Path;)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 0
aload 1
aload 2
invokedynamic editResource(Ljdk/jpackage/internal/ExecutableRebrander;Ljava/util/Map;Ljava/nio/file/Path;)Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;
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:
(J)V
jdk/jpackage/internal/ExecutableRebrander.lambda$0(Ljava/util/Map;Ljava/nio/file/Path;J)V (7)
(J)V
invokevirtual jdk.jpackage.internal.ExecutableRebrander.rebrandExecutable:(Ljava/util/Map;Ljava/nio/file/Path;Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jpackage/internal/ExecutableRebrander;
0 5 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 5 2 target Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/nio/file/Path;)V
MethodParameters:
Name Flags
params
target
void rebrandLauncher(java.util.Map<java.lang.String, ? super java.lang.Object>, java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokeinterface java.nio.file.Path.isAbsolute:()Z
ifeq 1
aload 2
ifnull 6
aload 2
invokeinterface java.nio.file.Path.isAbsolute:()Z
ifne 6
1: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 2: aload 2
ifnull 4
3: aload 2
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
astore 4
4: StackMap locals: java.nio.file.Path
StackMap stack:
aload 0
aload 1
aload 4
aload 3
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.ExecutableRebrander.rebrandLauncher:(Ljava/util/Map;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
5: return
end local 4 6: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 3
aload 0
aload 1
aload 3
aload 2
invokedynamic editResource(Ljdk/jpackage/internal/ExecutableRebrander;Ljava/util/Map;Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;
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:
(J)V
jdk/jpackage/internal/ExecutableRebrander.lambda$1(Ljava/util/Map;Ljava/nio/file/Path;Ljava/nio/file/Path;J)V (7)
(J)V
invokevirtual jdk.jpackage.internal.ExecutableRebrander.rebrandExecutable:(Ljava/util/Map;Ljava/nio/file/Path;Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;)V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jpackage/internal/ExecutableRebrander;
0 8 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 8 2 icon Ljava/nio/file/Path;
0 8 3 target Ljava/nio/file/Path;
2 6 4 absIcon Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
MethodParameters:
Name Flags
params
icon
target
jdk.jpackage.internal.ExecutableRebrander addAction(jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction);
descriptor: (Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;)Ljdk/jpackage/internal/ExecutableRebrander;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jpackage.internal.ExecutableRebrander.extraActions:Ljava/util/List;
ifnonnull 2
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.jpackage.internal.ExecutableRebrander.extraActions:Ljava/util/List;
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.ExecutableRebrander.extraActions:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jpackage/internal/ExecutableRebrander;
0 4 1 action Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;
MethodParameters:
Name Flags
action
private void rebrandExecutable(java.util.Map<java.lang.String, ? super java.lang.Object>, java.nio.file.Path, jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic jdk.jpackage.internal.StandardBundlerParam.TEMP_ROOT:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
1: invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
2: astore 4
start local 4 3: aload 4
4: invokestatic jdk.jpackage.internal.WindowsDefender.isThereAPotentialWindowsDefenderIssue:(Ljava/lang/String;)Z
5: ifeq 11
6: getstatic jdk.jpackage.internal.ExecutableRebrander.I18N:Ljava/util/ResourceBundle;
7: ldc "message.potential.windows.defender.issue"
8: invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
9: aload 4
aastore
10: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
11: StackMap locals: java.lang.String
StackMap stack:
aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
iconst_1
iconst_1
invokevirtual java.io.File.setWritable:(ZZ)Z
pop
12: aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokestatic jdk.jpackage.internal.ExecutableRebrander.lockResource:(Ljava/lang/String;)J
lstore 5
start local 5 13: lload 5
lconst_0
lcmp
ifne 17
14: new java.lang.RuntimeException
dup
15: getstatic jdk.jpackage.internal.ExecutableRebrander.I18N:Ljava/util/ResourceBundle;
ldc "error.lock-resource"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
16: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals: long
StackMap stack:
aload 3
lload 5
invokeinterface jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction.editResource:(J)V
18: aload 0
getfield jdk.jpackage.internal.ExecutableRebrander.extraActions:Ljava/util/List;
ifnull 28
19: aload 0
getfield jdk.jpackage.internal.ExecutableRebrander.extraActions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 22
StackMap locals: jdk.jpackage.internal.ExecutableRebrander java.util.Map java.nio.file.Path jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction java.lang.String long top java.util.Iterator
StackMap stack:
20: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction
astore 7
start local 7 21: aload 7
lload 5
invokeinterface jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction.editResource:(J)V
end local 7 22: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
23: goto 28
StackMap locals: jdk.jpackage.internal.ExecutableRebrander java.util.Map java.nio.file.Path jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction java.lang.String long
StackMap stack: java.lang.Throwable
24: astore 9
25: lload 5
lconst_0
lcmp
ifeq 27
26: lload 5
invokestatic jdk.jpackage.internal.ExecutableRebrander.unlockResource:(J)V
27: StackMap locals: jdk.jpackage.internal.ExecutableRebrander java.util.Map java.nio.file.Path jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction java.lang.String long top top java.lang.Throwable
StackMap stack:
aload 9
athrow
28: StackMap locals: jdk.jpackage.internal.ExecutableRebrander java.util.Map java.nio.file.Path jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction java.lang.String long
StackMap stack:
lload 5
lconst_0
lcmp
ifeq 34
29: lload 5
invokestatic jdk.jpackage.internal.ExecutableRebrander.unlockResource:(J)V
end local 5 end local 4 30: goto 34
StackMap locals: jdk.jpackage.internal.ExecutableRebrander java.util.Map java.nio.file.Path jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction
StackMap stack: java.lang.Throwable
31: astore 10
32: aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.setReadOnly:()Z
pop
33: aload 10
athrow
34: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.setReadOnly:()Z
pop
35: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Ljdk/jpackage/internal/ExecutableRebrander;
0 36 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 36 2 target Ljava/nio/file/Path;
0 36 3 action Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;
3 30 4 tempDirectory Ljava/lang/String;
13 30 5 resourceLock J
21 22 7 extraAction Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;
Exception table:
from to target type
17 24 24 any
0 31 31 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/nio/file/Path;Ljdk/jpackage/internal/ExecutableRebrander$UpdateResourceAction;)V
MethodParameters:
Name Flags
params
target
action
private static java.lang.String getFixedFileVersion(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_4
1: aload 0
invokestatic jdk.jpackage.internal.DottedVersion.greedy:(Ljava/lang/String;)Ljdk/jpackage/internal/DottedVersion;
invokevirtual jdk.jpackage.internal.DottedVersion.getComponents:()[Ljava/math/BigInteger;
arraylength
2: isub
istore 1
start local 1 3: iload 1
ifle 10
4: new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 2
start local 2 5: StackMap locals: int java.lang.StringBuilder
StackMap stack:
aload 2
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: aload 2
iconst_0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
7: iinc 1 -1
iload 1
8: ifgt 5
9: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 10: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 value Ljava/lang/String;
3 11 1 addComponentsCount I
5 10 2 sb Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
value
private java.util.Map<java.lang.String, java.lang.String> createSubstituteData(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 1: getstatic jdk.jpackage.internal.StandardBundlerParam.VERSION:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic jdk.jpackage.internal.ExecutableRebrander.getFixedFileVersion:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 2: aload 2
ldc "COMPANY_NAME"
getstatic jdk.jpackage.internal.StandardBundlerParam.VENDOR:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokestatic jdk.jpackage.internal.ExecutableRebrander.validateValueAndPut:(Ljava/util/Map;Ljava/lang/String;Ljdk/jpackage/internal/BundlerParamInfo;Ljava/util/Map;)V
3: aload 2
ldc "FILE_DESCRIPTION"
getstatic jdk.jpackage.internal.StandardBundlerParam.DESCRIPTION:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokestatic jdk.jpackage.internal.ExecutableRebrander.validateValueAndPut:(Ljava/util/Map;Ljava/lang/String;Ljdk/jpackage/internal/BundlerParamInfo;Ljava/util/Map;)V
4: aload 2
ldc "FILE_VERSION"
getstatic jdk.jpackage.internal.StandardBundlerParam.VERSION:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokestatic jdk.jpackage.internal.ExecutableRebrander.validateValueAndPut:(Ljava/util/Map;Ljava/lang/String;Ljdk/jpackage/internal/BundlerParamInfo;Ljava/util/Map;)V
5: aload 2
ldc "LEGAL_COPYRIGHT"
getstatic jdk.jpackage.internal.StandardBundlerParam.COPYRIGHT:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokestatic jdk.jpackage.internal.ExecutableRebrander.validateValueAndPut:(Ljava/util/Map;Ljava/lang/String;Ljdk/jpackage/internal/BundlerParamInfo;Ljava/util/Map;)V
6: aload 2
ldc "PRODUCT_NAME"
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokestatic jdk.jpackage.internal.ExecutableRebrander.validateValueAndPut:(Ljava/util/Map;Ljava/lang/String;Ljdk/jpackage/internal/BundlerParamInfo;Ljava/util/Map;)V
7: aload 2
ldc "FIXEDFILEINFO_FILE_VERSION"
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jpackage/internal/ExecutableRebrander;
0 9 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
1 9 2 data Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 9 3 fixedFileVersion Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
params
private void rebrandProperties(long, jdk.jpackage.internal.OverridableResource, java.util.Map<java.lang.String, java.lang.String>, java.nio.file.Path);
descriptor: (JLjdk/jpackage/internal/OverridableResource;Ljava/util/Map;Ljava/nio/file/Path;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=13, args_size=5
start local 0 start local 1 start local 3 start local 4 start local 5 0: aload 5
invokestatic jdk.jpackage.internal.IOUtils.getFileName:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 6
start local 6 1: aload 4
ldc "INTERNAL_NAME"
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 4
ldc "ORIGINAL_FILENAME"
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 7
start local 7 4: aload 3
5: aload 4
invokevirtual jdk.jpackage.internal.OverridableResource.setSubstitutionData:(Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
6: getstatic jdk.jpackage.internal.ExecutableRebrander.I18N:Ljava/util/ResourceBundle;
ldc "resource.executable-properties-template"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual jdk.jpackage.internal.OverridableResource.setCategory:(Ljava/lang/String;)Ljdk/jpackage/internal/OverridableResource;
7: aload 7
invokevirtual jdk.jpackage.internal.OverridableResource.saveToStream:(Ljava/io/OutputStream;)Ljdk/jpackage/internal/OverridableResource$Source;
pop
8: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 8
start local 8 9: aconst_null
astore 9
aconst_null
astore 10
10: new java.io.InputStreamReader
dup
new java.io.ByteArrayInputStream
dup
11: aload 7
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
12: invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
astore 11
start local 11 13: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 12
start local 12 14: aload 12
aload 11
invokevirtual java.util.Properties.load:(Ljava/io/Reader;)V
15: aload 12
aload 8
invokedynamic accept(Ljava/util/List;)Ljava/util/function/BiConsumer;
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;Ljava/lang/Object;)V
jdk/jpackage/internal/ExecutableRebrander.lambda$2(Ljava/util/List;Ljava/lang/Object;Ljava/lang/Object;)V (6)
(Ljava/lang/Object;Ljava/lang/Object;)V
invokevirtual java.util.Properties.forEach:(Ljava/util/function/BiConsumer;)V
end local 12 16: aload 11
ifnull 22
aload 11
invokevirtual java.io.Reader.close:()V
goto 22
StackMap locals: jdk.jpackage.internal.ExecutableRebrander long jdk.jpackage.internal.OverridableResource java.util.Map java.nio.file.Path java.lang.String java.io.ByteArrayOutputStream java.util.List java.lang.Throwable java.lang.Throwable java.io.Reader
StackMap stack: java.lang.Throwable
17: astore 9
aload 11
ifnull 18
aload 11
invokevirtual java.io.Reader.close:()V
end local 11 StackMap locals:
StackMap stack:
18: aload 9
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 10
aload 9
ifnonnull 20
aload 10
astore 9
goto 21
StackMap locals:
StackMap stack:
20: aload 9
aload 10
if_acmpeq 21
aload 9
aload 10
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
21: aload 9
athrow
22: StackMap locals:
StackMap stack:
lload 1
aload 8
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/ExecutableRebrander.lambda$3(I)[Ljava/lang/String; (6)
(I)[Ljava/lang/String;
invokeinterface java.util.List.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast java.lang.String[]
invokestatic jdk.jpackage.internal.ExecutableRebrander.versionSwap:(J[Ljava/lang/String;)I
ifeq 26
23: new java.lang.RuntimeException
dup
24: getstatic jdk.jpackage.internal.ExecutableRebrander.I18N:Ljava/util/ResourceBundle;
ldc "error.version-swap"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
25: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Ljdk/jpackage/internal/ExecutableRebrander;
0 27 1 resourceLock J
0 27 3 properties Ljdk/jpackage/internal/OverridableResource;
0 27 4 data Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 27 5 target Ljava/nio/file/Path;
1 27 6 targetExecutableName Ljava/lang/String;
4 27 7 buffer Ljava/io/ByteArrayOutputStream;
9 27 8 propList Ljava/util/List<Ljava/lang/String;>;
13 18 11 reader Ljava/io/Reader;
14 16 12 configProp Ljava/util/Properties;
Exception table:
from to target type
13 16 17 any
10 19 19 any
Exceptions:
throws java.io.IOException
Signature: (JLjdk/jpackage/internal/OverridableResource;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/nio/file/Path;)V
MethodParameters:
Name Flags
resourceLock
properties
data
target
private static void validateValueAndPut(java.util.Map<java.lang.String, java.lang.String>, java.lang.String, jdk.jpackage.internal.BundlerParamInfo<java.lang.String>, java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;Ljava/lang/String;Ljdk/jpackage/internal/BundlerParamInfo;Ljava/util/Map;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aload 3
invokevirtual jdk.jpackage.internal.BundlerParamInfo.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 1: aload 4
ldc "\r"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 2
aload 4
ldc "\n"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 7
2: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Configuration Parameter "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual jdk.jpackage.internal.BundlerParamInfo.getID:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc " contains multiple lines of text, ignore it"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.error:(Ljava/lang/String;)V
5: aload 0
aload 1
ldc ""
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: return
7: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 data Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 9 1 key Ljava/lang/String;
0 9 2 param Ljdk/jpackage/internal/BundlerParamInfo<Ljava/lang/String;>;
0 9 3 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
1 9 4 value Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/lang/String;Ljdk/jpackage/internal/BundlerParamInfo<Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
data
key
param
params
private static native long lockResource(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
executable
private static native void unlockResource(long);
descriptor: (J)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
resourceLock
private static native int iconSwap(long, java.lang.String);
descriptor: (JLjava/lang/String;)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
resourceLock
iconTarget
private static native int versionSwap(long, java.lang.String[]);
descriptor: (J[Ljava/lang/String;)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
resourceLock
executableProperties
private void lambda$0(java.util.Map, java.nio.file.Path, long);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;J)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 3 0: aload 0
lload 3
1: ldc "WinInstaller.template"
aload 1
2: invokestatic jdk.jpackage.internal.OverridableResource.createResource:(Ljava/lang/String;Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
3: ldc "WinInstaller.properties"
4: invokevirtual jdk.jpackage.internal.OverridableResource.setPublicName:(Ljava/lang/String;)Ljdk/jpackage/internal/OverridableResource;
5: aload 0
aload 1
invokevirtual jdk.jpackage.internal.ExecutableRebrander.createSubstituteData:(Ljava/util/Map;)Ljava/util/Map;
aload 2
6: invokevirtual jdk.jpackage.internal.ExecutableRebrander.rebrandProperties:(JLjdk/jpackage/internal/OverridableResource;Ljava/util/Map;Ljava/nio/file/Path;)V
7: return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jpackage/internal/ExecutableRebrander;
0 8 3 resourceLock J
Exceptions:
throws java.io.IOException
private void lambda$1(java.util.Map, java.nio.file.Path, java.nio.file.Path, long);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;Ljava/nio/file/Path;J)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=8, locals=6, args_size=5
start local 0 start local 4 0: aload 0
lload 4
1: ldc "WinLauncher.template"
aload 1
2: invokestatic jdk.jpackage.internal.OverridableResource.createResource:(Ljava/lang/String;Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
3: new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".properties"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokevirtual jdk.jpackage.internal.OverridableResource.setPublicName:(Ljava/lang/String;)Ljdk/jpackage/internal/OverridableResource;
5: aload 0
aload 1
invokevirtual jdk.jpackage.internal.ExecutableRebrander.createSubstituteData:(Ljava/util/Map;)Ljava/util/Map;
aload 2
6: invokevirtual jdk.jpackage.internal.ExecutableRebrander.rebrandProperties:(JLjdk/jpackage/internal/OverridableResource;Ljava/util/Map;Ljava/nio/file/Path;)V
7: aload 3
ifnull 9
8: lload 4
aload 3
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokestatic jdk.jpackage.internal.ExecutableRebrander.iconSwap:(JLjava/lang/String;)I
pop
9: StackMap locals:
StackMap stack:
return
end local 4 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/jpackage/internal/ExecutableRebrander;
0 10 4 resourceLock J
Exceptions:
throws java.io.IOException
private static void lambda$2(java.util.List, java.lang.Object, java.lang.Object);
descriptor: (Ljava/util/List;Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 1 start local 2 0: aload 0
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 0
aload 2
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: return
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 k Ljava/lang/Object;
0 3 2 v Ljava/lang/Object;
private static java.lang.String[] lambda$3(int);
descriptor: (I)[Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: iload 0
anewarray java.lang.String
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "ExecutableRebrander.java"
NestMembers:
jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
abstract UpdateResourceAction = jdk.jpackage.internal.ExecutableRebrander$UpdateResourceAction of jdk.jpackage.internal.ExecutableRebrander
final Source = jdk.jpackage.internal.OverridableResource$Source of jdk.jpackage.internal.OverridableResource