class jdk.tools.jmod.JmodTask$Hasher
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.tools.jmod.JmodTask$Hasher
super_class: java.lang.Object
{
final java.lang.module.Configuration configuration;
descriptor: Ljava/lang/module/Configuration;
flags: (0x0010) ACC_FINAL
final jdk.internal.module.ModuleHashesBuilder hashesBuilder;
descriptor: Ljdk/internal/module/ModuleHashesBuilder;
flags: (0x0010) ACC_FINAL
final java.util.Set<java.lang.String> modules;
descriptor: Ljava/util/Set;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
final java.lang.String moduleName;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final jdk.tools.jmod.JmodTask this$0;
descriptor: Ljdk/tools/jmod/JmodTask;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.tools.jmod.JmodTask, java.lang.module.ModuleFinder);
descriptor: (Ljdk/tools/jmod/JmodTask;Ljava/lang/module/ModuleFinder;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
aconst_null
aload 2
invokespecial jdk.tools.jmod.JmodTask$Hasher.<init>:(Ljdk/tools/jmod/JmodTask;Ljava/lang/String;Ljava/lang/module/ModuleFinder;)V
1: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jmod/JmodTask$Hasher;
0 2 2 finder Ljava/lang/module/ModuleFinder;
MethodParameters:
Name Flags
this$0 final
finder
void <init>(jdk.tools.jmod.JmodTask, java.lang.String, java.lang.module.ModuleFinder);
descriptor: (Ljdk/tools/jmod/JmodTask;Ljava/lang/String;Ljava/lang/module/ModuleFinder;)V
flags: (0x0000)
Code:
stack=7, locals=8, args_size=4
start local 0 start local 2 start local 3 0: aload 0
aload 1
putfield jdk.tools.jmod.JmodTask$Hasher.this$0:Ljdk/tools/jmod/JmodTask;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 3
invokeinterface java.lang.module.ModuleFinder.findAll:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
2: invokedynamic apply()Ljava/util/function/Function;
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;
jdk/tools/jmod/JmodTask$Hasher.lambda$0(Ljava/lang/module/ModuleReference;)Ljava/lang/String; (6)
(Ljava/lang/module/ModuleReference;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: aload 0
invokedynamic test(Ljdk/tools/jmod/JmodTask$Hasher;)Ljava/util/function/Predicate;
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;)Z
jdk/tools/jmod/JmodTask$Hasher.lambda$1(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
4: invokestatic java.util.stream.Collectors.toSet:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Set
5: astore 4
start local 4 6: aload 2
ifnull 9
invokestatic java.lang.module.ModuleFinder.ofSystem:()Ljava/lang/module/ModuleFinder;
aload 2
invokeinterface java.lang.module.ModuleFinder.find:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifeq 9
7: iconst_0
anewarray java.nio.file.Path
invokestatic java.lang.module.ModuleFinder.of:([Ljava/nio/file/Path;)Ljava/lang/module/ModuleFinder;
astore 5
start local 5 8: goto 10
end local 5 9: StackMap locals: jdk.tools.jmod.JmodTask$Hasher jdk.tools.jmod.JmodTask java.lang.String java.lang.module.ModuleFinder java.util.Set
StackMap stack:
invokestatic java.lang.module.ModuleFinder.ofSystem:()Ljava/lang/module/ModuleFinder;
astore 5
start local 5 10: StackMap locals: java.lang.module.ModuleFinder
StackMap stack:
aconst_null
astore 6
start local 6 11: invokestatic java.lang.module.Configuration.empty:()Ljava/lang/module/Configuration;
aload 5
aload 3
aload 4
invokevirtual java.lang.module.Configuration.resolve:(Ljava/lang/module/ModuleFinder;Ljava/lang/module/ModuleFinder;Ljava/util/Collection;)Ljava/lang/module/Configuration;
astore 6
12: goto 15
StackMap locals: jdk.tools.jmod.JmodTask$Hasher jdk.tools.jmod.JmodTask java.lang.String java.lang.module.ModuleFinder java.util.Set java.lang.module.ModuleFinder java.lang.module.Configuration
StackMap stack: java.lang.RuntimeException
13: astore 7
start local 7 14: new jdk.tools.jmod.JmodTask$CommandException
dup
ldc "err.module.resolution.fail"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 7
invokevirtual java.lang.RuntimeException.getMessage:()Ljava/lang/String;
aastore
invokespecial jdk.tools.jmod.JmodTask$CommandException.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
athrow
end local 7 15: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield jdk.tools.jmod.JmodTask$Hasher.moduleName:Ljava/lang/String;
16: aload 0
aload 6
putfield jdk.tools.jmod.JmodTask$Hasher.configuration:Ljava/lang/module/Configuration;
17: aload 0
aload 6
invokevirtual java.lang.module.Configuration.modules:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
18: invokedynamic apply()Ljava/util/function/Function;
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;
java/lang/module/ResolvedModule.name()Ljava/lang/String; (5)
(Ljava/lang/module/ResolvedModule;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
19: aload 4
aload 5
invokedynamic test(Ljava/util/Set;Ljava/lang/module/ModuleFinder;)Ljava/util/function/Predicate;
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;)Z
jdk/tools/jmod/JmodTask$Hasher.lambda$3(Ljava/util/Set;Ljava/lang/module/ModuleFinder;Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
20: invokestatic java.util.stream.Collectors.toSet:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Set
21: putfield jdk.tools.jmod.JmodTask$Hasher.modules:Ljava/util/Set;
22: aload 0
new jdk.internal.module.ModuleHashesBuilder
dup
aload 6
aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.modules:Ljava/util/Set;
invokespecial jdk.internal.module.ModuleHashesBuilder.<init>:(Ljava/lang/module/Configuration;Ljava/util/Set;)V
putfield jdk.tools.jmod.JmodTask$Hasher.hashesBuilder:Ljdk/internal/module/ModuleHashesBuilder;
23: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljdk/tools/jmod/JmodTask$Hasher;
0 24 2 name Ljava/lang/String;
0 24 3 finder Ljava/lang/module/ModuleFinder;
6 24 4 roots Ljava/util/Set<Ljava/lang/String;>;
8 9 5 system Ljava/lang/module/ModuleFinder;
10 24 5 system Ljava/lang/module/ModuleFinder;
11 24 6 config Ljava/lang/module/Configuration;
14 15 7 e Ljava/lang/RuntimeException;
Exception table:
from to target type
11 12 13 Class java.lang.module.FindException
11 12 13 Class java.lang.module.ResolutionException
MethodParameters:
Name Flags
this$0 final
name
finder
java.util.Map<java.lang.String, jdk.internal.module.ModuleHashes> computeHashes();
descriptor: ()Ljava/util/Map;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.hashesBuilder:Ljdk/internal/module/ModuleHashesBuilder;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.moduleName:Ljava/lang/String;
ifnull 4
3: aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.hashesBuilder:Ljdk/internal/module/ModuleHashesBuilder;
aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.moduleName:Ljava/lang/String;
invokestatic java.util.Set.of:(Ljava/lang/Object;)Ljava/util/Set;
invokevirtual jdk.internal.module.ModuleHashesBuilder.computeHashes:(Ljava/util/Set;)Ljava/util/Map;
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.hashesBuilder:Ljdk/internal/module/ModuleHashesBuilder;
aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.modules:Ljava/util/Set;
invokevirtual jdk.internal.module.ModuleHashesBuilder.computeHashes:(Ljava/util/Set;)Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jmod/JmodTask$Hasher;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljdk/internal/module/ModuleHashes;>;
private void recordHashes(java.io.InputStream, java.io.OutputStream, jdk.internal.module.ModuleHashes);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;Ljdk/internal/module/ModuleHashes;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic jdk.internal.module.ModuleInfoExtender.newExtender:(Ljava/io/InputStream;)Ljdk/internal/module/ModuleInfoExtender;
astore 4
start local 4 1: aload 4
aload 3
invokevirtual jdk.internal.module.ModuleInfoExtender.hashes:(Ljdk/internal/module/ModuleHashes;)Ljdk/internal/module/ModuleInfoExtender;
pop
2: aload 4
aload 2
invokevirtual jdk.internal.module.ModuleInfoExtender.write:(Ljava/io/OutputStream;)V
3: return
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/tools/jmod/JmodTask$Hasher;
0 4 1 in Ljava/io/InputStream;
0 4 2 out Ljava/io/OutputStream;
0 4 3 hashes Ljdk/internal/module/ModuleHashes;
1 4 4 extender Ljdk/internal/module/ModuleInfoExtender;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
out
hashes
void updateModuleInfo(java.lang.String, jdk.internal.module.ModuleHashes);
descriptor: (Ljava/lang/String;Ljdk/internal/module/ModuleHashes;)V
flags: (0x0000)
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual jdk.tools.jmod.JmodTask$Hasher.moduleToPath:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 1: aload 3
invokestatic jdk.tools.jmod.JmodTask.jmodTempFilePath:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 4
start local 4 2: aload 3
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc ".jmod"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
3: aload 0
aload 3
aload 4
aload 2
invokevirtual jdk.tools.jmod.JmodTask$Hasher.updateJmodFile:(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljdk/internal/module/ModuleHashes;)V
4: goto 13
5: StackMap locals: java.nio.file.Path java.nio.file.Path
StackMap stack:
aload 0
aload 3
aload 4
aload 2
invokevirtual jdk.tools.jmod.JmodTask$Hasher.updateModularJar:(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljdk/internal/module/ModuleHashes;)V
6: goto 13
StackMap locals:
StackMap stack: java.lang.Exception
7: astore 5
start local 5 8: aload 4
invokestatic java.nio.file.Files.deleteIfExists:(Ljava/nio/file/Path;)Z
pop
9: goto 12
StackMap locals: jdk.tools.jmod.JmodTask$Hasher java.lang.String jdk.internal.module.ModuleHashes java.nio.file.Path java.nio.file.Path java.lang.Exception
StackMap stack: java.io.IOException
10: astore 6
start local 6 11: aload 5
aload 6
invokevirtual java.lang.Exception.addSuppressed:(Ljava/lang/Throwable;)V
end local 6 12: StackMap locals:
StackMap stack:
aload 5
athrow
end local 5 13: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.this$0:Ljdk/tools/jmod/JmodTask;
getfield jdk.tools.jmod.JmodTask.out:Ljava/io/PrintWriter;
ldc "module.hashes.recorded"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic jdk.tools.jmod.JmodTask.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
14: aload 4
aload 3
iconst_1
anewarray java.nio.file.CopyOption
dup
iconst_0
getstatic java.nio.file.StandardCopyOption.REPLACE_EXISTING:Ljava/nio/file/StandardCopyOption;
aastore
invokestatic java.nio.file.Files.move:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
15: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/tools/jmod/JmodTask$Hasher;
0 16 1 name Ljava/lang/String;
0 16 2 moduleHashes Ljdk/internal/module/ModuleHashes;
1 16 3 target Ljava/nio/file/Path;
2 16 4 tempTarget Ljava/nio/file/Path;
8 13 5 e Ljava/lang/Exception;
11 12 6 ioe Ljava/io/IOException;
Exception table:
from to target type
2 6 7 Class java.io.IOException
2 6 7 Class java.lang.RuntimeException
8 9 10 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
moduleHashes
private void updateModularJar(java.nio.file.Path, java.nio.file.Path, jdk.internal.module.ModuleHashes);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;Ljdk/internal/module/ModuleHashes;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
aconst_null
astore 5
1: new java.util.jar.JarFile
dup
aload 1
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokespecial java.util.jar.JarFile.<init>:(Ljava/io/File;)V
astore 6
start local 6 2: aload 2
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newOutputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
astore 7
start local 7 3: new java.util.jar.JarOutputStream
dup
aload 7
invokespecial java.util.jar.JarOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 8
start local 8 4: aload 6
invokevirtual java.util.jar.JarFile.stream:()Ljava/util/stream/Stream;
aload 0
aload 6
aload 8
aload 3
invokedynamic accept(Ljdk/tools/jmod/JmodTask$Hasher;Ljava/util/jar/JarFile;Ljava/util/jar/JarOutputStream;Ljdk/internal/module/ModuleHashes;)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/tools/jmod/JmodTask$Hasher.lambda$4(Ljava/util/jar/JarFile;Ljava/util/jar/JarOutputStream;Ljdk/internal/module/ModuleHashes;Ljava/util/jar/JarEntry;)V (7)
(Ljava/util/jar/JarEntry;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
5: aload 8
ifnull 8
aload 8
invokevirtual java.util.jar.JarOutputStream.close:()V
goto 8
StackMap locals: jdk.tools.jmod.JmodTask$Hasher java.nio.file.Path java.nio.file.Path jdk.internal.module.ModuleHashes java.lang.Throwable java.lang.Throwable java.util.jar.JarFile java.io.OutputStream java.util.jar.JarOutputStream
StackMap stack: java.lang.Throwable
6: astore 4
aload 8
ifnull 7
aload 8
invokevirtual java.util.jar.JarOutputStream.close:()V
end local 8 StackMap locals:
StackMap stack:
7: aload 4
athrow
StackMap locals:
StackMap stack:
8: aload 7
ifnull 13
aload 7
invokevirtual java.io.OutputStream.close:()V
goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 5
aload 4
ifnonnull 10
aload 5
astore 4
goto 11
StackMap locals:
StackMap stack:
10: aload 4
aload 5
if_acmpeq 11
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
11: aload 7
ifnull 12
aload 7
invokevirtual java.io.OutputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
12: aload 4
athrow
StackMap locals:
StackMap stack:
13: aload 6
ifnull 21
aload 6
invokevirtual java.util.jar.JarFile.close:()V
goto 21
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 5
aload 4
ifnonnull 15
aload 5
astore 4
goto 16
StackMap locals:
StackMap stack:
15: aload 4
aload 5
if_acmpeq 16
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
16: aload 6
ifnull 17
aload 6
invokevirtual java.util.jar.JarFile.close:()V
end local 6 StackMap locals:
StackMap stack:
17: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 5
aload 4
ifnonnull 19
aload 5
astore 4
goto 20
StackMap locals:
StackMap stack:
19: aload 4
aload 5
if_acmpeq 20
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
20: aload 4
athrow
21: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/tools/jmod/JmodTask$Hasher;
0 22 1 target Ljava/nio/file/Path;
0 22 2 tempTarget Ljava/nio/file/Path;
0 22 3 moduleHashes Ljdk/internal/module/ModuleHashes;
2 17 6 jf Ljava/util/jar/JarFile;
3 12 7 out Ljava/io/OutputStream;
4 7 8 jos Ljava/util/jar/JarOutputStream;
Exception table:
from to target type
4 5 6 any
3 8 9 any
2 13 14 any
1 18 18 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
target
tempTarget
moduleHashes
private void updateJmodFile(java.nio.file.Path, java.nio.file.Path, jdk.internal.module.ModuleHashes);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;Ljdk/internal/module/ModuleHashes;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
aconst_null
astore 5
1: new jdk.internal.jmod.JmodFile
dup
aload 1
invokespecial jdk.internal.jmod.JmodFile.<init>:(Ljava/nio/file/Path;)V
astore 6
start local 6 2: aload 2
invokestatic jdk.tools.jmod.JmodOutputStream.newOutputStream:(Ljava/nio/file/Path;)Ljdk/tools/jmod/JmodOutputStream;
astore 7
start local 7 3: aload 6
invokevirtual jdk.internal.jmod.JmodFile.stream:()Ljava/util/stream/Stream;
aload 6
aload 3
aload 7
invokedynamic accept(Ljdk/internal/jmod/JmodFile;Ljdk/internal/module/ModuleHashes;Ljdk/tools/jmod/JmodOutputStream;)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/tools/jmod/JmodTask$Hasher.lambda$5(Ljdk/internal/jmod/JmodFile;Ljdk/internal/module/ModuleHashes;Ljdk/tools/jmod/JmodOutputStream;Ljdk/internal/jmod/JmodFile$Entry;)V (6)
(Ljdk/internal/jmod/JmodFile$Entry;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
4: aload 7
ifnull 7
aload 7
invokevirtual jdk.tools.jmod.JmodOutputStream.close:()V
goto 7
StackMap locals: jdk.tools.jmod.JmodTask$Hasher java.nio.file.Path java.nio.file.Path jdk.internal.module.ModuleHashes java.lang.Throwable java.lang.Throwable jdk.internal.jmod.JmodFile jdk.tools.jmod.JmodOutputStream
StackMap stack: java.lang.Throwable
5: astore 4
aload 7
ifnull 6
aload 7
invokevirtual jdk.tools.jmod.JmodOutputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
6: aload 4
athrow
StackMap locals:
StackMap stack:
7: aload 6
ifnull 15
aload 6
invokevirtual jdk.internal.jmod.JmodFile.close:()V
goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 5
aload 4
ifnonnull 9
aload 5
astore 4
goto 10
StackMap locals:
StackMap stack:
9: aload 4
aload 5
if_acmpeq 10
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 6
ifnull 11
aload 6
invokevirtual jdk.internal.jmod.JmodFile.close:()V
end local 6 StackMap locals:
StackMap stack:
11: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
12: astore 5
aload 4
ifnonnull 13
aload 5
astore 4
goto 14
StackMap locals:
StackMap stack:
13: aload 4
aload 5
if_acmpeq 14
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
14: aload 4
athrow
15: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/tools/jmod/JmodTask$Hasher;
0 16 1 target Ljava/nio/file/Path;
0 16 2 tempTarget Ljava/nio/file/Path;
0 16 3 moduleHashes Ljdk/internal/module/ModuleHashes;
2 11 6 jf Ljdk/internal/jmod/JmodFile;
3 6 7 jos Ljdk/tools/jmod/JmodOutputStream;
Exception table:
from to target type
3 4 5 any
2 7 8 any
1 12 12 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
target
tempTarget
moduleHashes
private java.nio.file.Path moduleToPath(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.configuration:Ljava/lang/module/Configuration;
aload 1
invokevirtual java.lang.module.Configuration.findModule:(Ljava/lang/String;)Ljava/util/Optional;
1: aload 1
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
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;
jdk/tools/jmod/JmodTask$Hasher.lambda$6(Ljava/lang/String;)Ljava/lang/InternalError; (6)
()Ljava/lang/InternalError;
2: invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast java.lang.module.ResolvedModule
astore 2
start local 2 3: aload 2
invokevirtual java.lang.module.ResolvedModule.reference:()Ljava/lang/module/ModuleReference;
invokevirtual java.lang.module.ModuleReference.location:()Ljava/util/Optional;
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast java.net.URI
astore 3
start local 3 4: aload 3
invokestatic java.nio.file.Paths.get:(Ljava/net/URI;)Ljava/nio/file/Path;
astore 4
start local 4 5: aload 4
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 5
start local 5 6: aload 5
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 8
aload 5
ldc ".jmod"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 8
7: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " is not a modular JAR or jmod file"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: jdk.tools.jmod.JmodTask$Hasher java.lang.String java.lang.module.ResolvedModule java.net.URI java.nio.file.Path java.lang.String
StackMap stack:
aload 4
areturn
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 9 0 this Ljdk/tools/jmod/JmodTask$Hasher;
0 9 1 name Ljava/lang/String;
3 9 2 rm Ljava/lang/module/ResolvedModule;
4 9 3 uri Ljava/net/URI;
5 9 4 path Ljava/nio/file/Path;
6 9 5 fn Ljava/lang/String;
MethodParameters:
Name Flags
name
private static java.lang.String lambda$0(java.lang.module.ModuleReference);
descriptor: (Ljava/lang/module/ModuleReference;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 mref Ljava/lang/module/ModuleReference;
private boolean lambda$1(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jmod.JmodTask$Hasher.this$0:Ljdk/tools/jmod/JmodTask;
getfield jdk.tools.jmod.JmodTask.options:Ljdk/tools/jmod/JmodTask$Options;
getfield jdk.tools.jmod.JmodTask$Options.modulesToHash:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.find:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jmod/JmodTask$Hasher;
0 1 1 mn Ljava/lang/String;
private static boolean lambda$3(java.util.Set, java.lang.module.ModuleFinder, java.lang.String);
descriptor: (Ljava/util/Set;Ljava/lang/module/ModuleFinder;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 2
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 1
aload 1
aload 2
invokeinterface java.lang.module.ModuleFinder.find:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 3 2 mn Ljava/lang/String;
private void lambda$4(java.util.jar.JarFile, java.util.jar.JarOutputStream, jdk.internal.module.ModuleHashes, java.util.jar.JarEntry);
descriptor: (Ljava/util/jar/JarFile;Ljava/util/jar/JarOutputStream;Ljdk/internal/module/ModuleHashes;Ljava/util/jar/JarEntry;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=9, args_size=5
start local 0 start local 4 0: aconst_null
astore 5
aconst_null
astore 6
1: aload 1
aload 4
invokevirtual java.util.jar.JarFile.getInputStream:(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;
astore 7
start local 7 2: aload 4
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
ldc "module-info.class"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
3: new java.util.zip.ZipEntry
dup
aload 4
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
invokespecial java.util.zip.ZipEntry.<init>:(Ljava/lang/String;)V
astore 8
start local 8 4: aload 8
invokestatic java.lang.System.currentTimeMillis:()J
invokevirtual java.util.zip.ZipEntry.setTime:(J)V
5: aload 2
aload 8
invokevirtual java.util.jar.JarOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
6: aload 0
aload 7
aload 2
aload 3
invokevirtual jdk.tools.jmod.JmodTask$Hasher.recordHashes:(Ljava/io/InputStream;Ljava/io/OutputStream;Ljdk/internal/module/ModuleHashes;)V
7: aload 2
invokevirtual java.util.jar.JarOutputStream.closeEntry:()V
end local 8 8: goto 12
9: StackMap locals: java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack:
aload 2
aload 4
invokevirtual java.util.jar.JarOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
10: aload 2
aload 7
invokevirtual java.io.InputStream.readAllBytes:()[B
invokevirtual java.util.jar.JarOutputStream.write:([B)V
11: aload 2
invokevirtual java.util.jar.JarOutputStream.closeEntry:()V
12: StackMap locals:
StackMap stack:
aload 7
ifnull 20
aload 7
invokevirtual java.io.InputStream.close:()V
goto 20
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 5
aload 7
ifnull 14
aload 7
invokevirtual java.io.InputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
14: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 6
aload 5
ifnonnull 16
aload 6
astore 5
goto 17
StackMap locals:
StackMap stack:
16: aload 5
aload 6
if_acmpeq 17
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 5
athrow
StackMap locals: jdk.tools.jmod.JmodTask$Hasher java.util.jar.JarFile java.util.jar.JarOutputStream jdk.internal.module.ModuleHashes java.util.jar.JarEntry
StackMap stack: java.io.IOException
18: astore 5
start local 5 19: new java.io.UncheckedIOException
dup
aload 5
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 5 20: StackMap locals:
StackMap stack:
return
end local 4 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljdk/tools/jmod/JmodTask$Hasher;
0 21 4 e Ljava/util/jar/JarEntry;
2 14 7 in Ljava/io/InputStream;
4 8 8 ze Ljava/util/zip/ZipEntry;
19 20 5 x Ljava/io/IOException;
Exception table:
from to target type
2 12 13 any
1 15 15 any
0 18 18 Class java.io.IOException
private static void lambda$5(jdk.internal.jmod.JmodFile, jdk.internal.module.ModuleHashes, jdk.tools.jmod.JmodOutputStream, jdk.internal.jmod.JmodFile$Entry);
descriptor: (Ljdk/internal/jmod/JmodFile;Ljdk/internal/module/ModuleHashes;Ljdk/tools/jmod/JmodOutputStream;Ljdk/internal/jmod/JmodFile$Entry;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=8, args_size=4
start local 3 0: aconst_null
astore 4
aconst_null
astore 5
1: aload 0
aload 3
invokevirtual jdk.internal.jmod.JmodFile$Entry.section:()Ljdk/internal/jmod/JmodFile$Section;
aload 3
invokevirtual jdk.internal.jmod.JmodFile$Entry.name:()Ljava/lang/String;
invokevirtual jdk.internal.jmod.JmodFile.getInputStream:(Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Ljava/io/InputStream;
astore 6
start local 6 2: aload 3
invokevirtual jdk.internal.jmod.JmodFile$Entry.name:()Ljava/lang/String;
ldc "module-info.class"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
3: aload 6
invokestatic jdk.internal.module.ModuleInfoExtender.newExtender:(Ljava/io/InputStream;)Ljdk/internal/module/ModuleInfoExtender;
4: astore 7
start local 7 5: aload 7
aload 1
invokevirtual jdk.internal.module.ModuleInfoExtender.hashes:(Ljdk/internal/module/ModuleHashes;)Ljdk/internal/module/ModuleInfoExtender;
pop
6: aload 2
aload 7
invokevirtual jdk.internal.module.ModuleInfoExtender.toByteArray:()[B
aload 3
invokevirtual jdk.internal.jmod.JmodFile$Entry.section:()Ljdk/internal/jmod/JmodFile$Section;
aload 3
invokevirtual jdk.internal.jmod.JmodFile$Entry.name:()Ljava/lang/String;
invokevirtual jdk.tools.jmod.JmodOutputStream.writeEntry:([BLjdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)V
end local 7 7: goto 9
8: StackMap locals: java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack:
aload 2
aload 6
aload 3
invokevirtual jdk.tools.jmod.JmodOutputStream.writeEntry:(Ljava/io/InputStream;Ljdk/internal/jmod/JmodFile$Entry;)V
9: StackMap locals:
StackMap stack:
aload 6
ifnull 17
aload 6
invokevirtual java.io.InputStream.close:()V
goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 4
aload 6
ifnull 11
aload 6
invokevirtual java.io.InputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
11: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
12: astore 5
aload 4
ifnonnull 13
aload 5
astore 4
goto 14
StackMap locals:
StackMap stack:
13: aload 4
aload 5
if_acmpeq 14
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
14: aload 4
athrow
StackMap locals: jdk.internal.jmod.JmodFile jdk.internal.module.ModuleHashes jdk.tools.jmod.JmodOutputStream jdk.internal.jmod.JmodFile$Entry
StackMap stack: java.io.IOException
15: astore 4
start local 4 16: new java.io.UncheckedIOException
dup
aload 4
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 4 17: StackMap locals:
StackMap stack:
return
end local 3 LocalVariableTable:
Start End Slot Name Signature
0 18 3 e Ljdk/internal/jmod/JmodFile$Entry;
2 11 6 in Ljava/io/InputStream;
5 7 7 extender Ljdk/internal/module/ModuleInfoExtender;
16 17 4 x Ljava/io/IOException;
Exception table:
from to target type
2 9 10 any
1 12 12 any
0 15 15 Class java.io.IOException
private static java.lang.InternalError lambda$6(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/InternalError;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
0: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Selected module "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not on module path"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "JmodTask.java"
NestHost: jdk.tools.jmod.JmodTask
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Entry = jdk.internal.jmod.JmodFile$Entry of jdk.internal.jmod.JmodFile
public final Section = jdk.internal.jmod.JmodFile$Section of jdk.internal.jmod.JmodFile
CommandException = jdk.tools.jmod.JmodTask$CommandException of jdk.tools.jmod.JmodTask
private Hasher = jdk.tools.jmod.JmodTask$Hasher of jdk.tools.jmod.JmodTask
Options = jdk.tools.jmod.JmodTask$Options of jdk.tools.jmod.JmodTask