public final class jdk.internal.module.ModulePatcher
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.module.ModulePatcher
super_class: java.lang.Object
{
private static final jdk.internal.access.JavaLangModuleAccess JLMA;
descriptor: Ljdk/internal/access/JavaLangModuleAccess;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.Map<java.lang.String, java.util.List<java.nio.file.Path>> map;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/nio/file/Path;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.access.SharedSecrets.getJavaLangModuleAccess:()Ljdk/internal/access/JavaLangModuleAccess;
1: putstatic jdk.internal.module.ModulePatcher.JLMA:Ljdk/internal/access/JavaLangModuleAccess;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.Map<java.lang.String, java.util.List<java.lang.String>>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokeinterface java.util.Map.isEmpty:()Z
ifeq 4
2: aload 0
invokestatic java.util.Map.of:()Ljava/util/Map;
putfield jdk.internal.module.ModulePatcher.map:Ljava/util/Map;
3: goto 15
4: StackMap locals: jdk.internal.module.ModulePatcher java.util.Map
StackMap stack:
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 5: aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 13
StackMap locals: jdk.internal.module.ModulePatcher java.util.Map java.util.Map top java.util.Iterator
StackMap stack:
6: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 7: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 8: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.List
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
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/internal/module/ModulePatcher.lambda$18(Ljava/lang/String;)Ljava/nio/file/Path; (6)
(Ljava/lang/String;)Ljava/nio/file/Path;
9: invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
10: 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
11: astore 6
start local 6 12: aload 2
aload 5
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 end local 5 end local 3 13: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
14: aload 0
aload 2
putfield jdk.internal.module.ModulePatcher.map:Ljava/util/Map;
end local 2 15: StackMap locals: jdk.internal.module.ModulePatcher java.util.Map
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/internal/module/ModulePatcher;
0 16 1 input Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
5 15 2 map Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/nio/file/Path;>;>;
7 13 3 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
8 13 5 mn Ljava/lang/String;
12 13 6 paths Ljava/util/List<Ljava/nio/file/Path;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;)V
MethodParameters:
Name Flags
input
public java.lang.module.ModuleReference patchIfNeeded(java.lang.module.ModuleReference);
descriptor: (Ljava/lang/module/ModuleReference;)Ljava/lang/module/ModuleReference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=13, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
astore 2
start local 2 1: aload 2
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
astore 3
start local 3 2: aload 0
getfield jdk.internal.module.ModulePatcher.map:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 4
start local 4 3: aload 4
ifnonnull 5
4: aload 1
areturn
5: StackMap locals: java.lang.module.ModuleDescriptor java.lang.String java.util.List
StackMap stack:
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 5
start local 5 6: aload 2
invokevirtual java.lang.module.ModuleDescriptor.isAutomatic:()Z
istore 6
start local 6 7: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 32
StackMap locals: jdk.internal.module.ModulePatcher java.lang.module.ModuleReference java.lang.module.ModuleDescriptor java.lang.String java.util.List java.util.Set int top java.util.Iterator
StackMap stack:
8: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 7
start local 7 9: aload 7
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isRegularFile:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 23
10: aconst_null
astore 9
aconst_null
astore 10
11: new java.util.jar.JarFile
dup
aload 7
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokespecial java.util.jar.JarFile.<init>:(Ljava/lang/String;)V
astore 11
start local 11 12: aload 11
invokevirtual java.util.jar.JarFile.stream:()Ljava/util/stream/Stream;
13: iload 6
invokedynamic test(Z)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/internal/module/ModulePatcher.lambda$1(ZLjava/util/jar/JarEntry;)Z (6)
(Ljava/util/jar/JarEntry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
14: aload 7
invokedynamic apply(Ljava/nio/file/Path;)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/internal/module/ModulePatcher.lambda$2(Ljava/nio/file/Path;Ljava/util/jar/JarEntry;)Ljava/lang/String; (6)
(Ljava/util/jar/JarEntry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
15: invokedynamic test()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/internal/module/Checks.isPackageName(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
16: aload 5
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/Set;)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
java/util/Set.add(Ljava/lang/Object;)Z (9 itf)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
17: aload 11
ifnull 32
aload 11
invokevirtual java.util.jar.JarFile.close:()V
goto 32
StackMap locals: jdk.internal.module.ModulePatcher java.lang.module.ModuleReference java.lang.module.ModuleDescriptor java.lang.String java.util.List java.util.Set int java.nio.file.Path java.util.Iterator java.lang.Throwable java.lang.Throwable java.util.jar.JarFile
StackMap stack: java.lang.Throwable
18: astore 9
aload 11
ifnull 19
aload 11
invokevirtual java.util.jar.JarFile.close:()V
end local 11 StackMap locals:
StackMap stack:
19: aload 9
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 10
aload 9
ifnonnull 21
aload 10
astore 9
goto 22
StackMap locals:
StackMap stack:
21: aload 9
aload 10
if_acmpeq 22
aload 9
aload 10
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
22: aload 9
athrow
23: StackMap locals:
StackMap stack:
aload 7
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 32
24: aload 7
astore 9
start local 9 25: aload 9
ldc 2147483647
26: invokedynamic test()Ljava/util/function/BiPredicate;
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;)Z
jdk/internal/module/ModulePatcher.lambda$5(Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z (6)
(Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z
iconst_0
anewarray java.nio.file.FileVisitOption
27: invokestatic java.nio.file.Files.find:(Ljava/nio/file/Path;ILjava/util/function/BiPredicate;[Ljava/nio/file/FileVisitOption;)Ljava/util/stream/Stream;
28: aload 0
iload 6
invokedynamic test(Ljdk/internal/module/ModulePatcher;Z)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/internal/module/ModulePatcher.lambda$6(ZLjava/nio/file/Path;)Z (7)
(Ljava/nio/file/Path;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
29: aload 9
invokedynamic apply(Ljava/nio/file/Path;)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/internal/module/ModulePatcher.lambda$7(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String; (6)
(Ljava/nio/file/Path;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
30: invokedynamic test()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/internal/module/Checks.isPackageName(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
31: aload 5
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/Set;)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
java/util/Set.add(Ljava/lang/Object;)Z (9 itf)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
end local 9 end local 7 32: StackMap locals: jdk.internal.module.ModulePatcher java.lang.module.ModuleReference java.lang.module.ModuleDescriptor java.lang.String java.util.List java.util.Set int top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
33: goto 36
StackMap locals: jdk.internal.module.ModulePatcher java.lang.module.ModuleReference java.lang.module.ModuleDescriptor java.lang.String java.util.List java.util.Set int
StackMap stack: java.io.IOException
34: astore 7
start local 7 35: new java.io.UncheckedIOException
dup
aload 7
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 7 36: StackMap locals:
StackMap stack:
aload 5
aload 2
invokevirtual java.lang.module.ModuleDescriptor.packages:()Ljava/util/Set;
invokeinterface java.util.Set.removeAll:(Ljava/util/Collection;)Z
pop
37: aload 5
invokeinterface java.util.Set.isEmpty:()Z
ifne 53
38: getstatic jdk.internal.module.ModulePatcher.JLMA:Ljdk/internal/access/JavaLangModuleAccess;
aload 2
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
39: iconst_0
40: aload 2
invokevirtual java.lang.module.ModuleDescriptor.modifiers:()Ljava/util/Set;
41: invokeinterface jdk.internal.access.JavaLangModuleAccess.newModuleBuilder:(Ljava/lang/String;ZLjava/util/Set;)Ljava/lang/module/ModuleDescriptor$Builder;
astore 7
start local 7 42: aload 2
invokevirtual java.lang.module.ModuleDescriptor.isAutomatic:()Z
ifne 47
43: aload 2
invokevirtual java.lang.module.ModuleDescriptor.requires:()Ljava/util/Set;
aload 7
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.requires(Ljava/lang/module/ModuleDescriptor$Requires;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Requires;)V
invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
44: aload 2
invokevirtual java.lang.module.ModuleDescriptor.exports:()Ljava/util/Set;
aload 7
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.exports(Ljava/lang/module/ModuleDescriptor$Exports;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Exports;)V
invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
45: aload 2
invokevirtual java.lang.module.ModuleDescriptor.opens:()Ljava/util/Set;
aload 7
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.opens(Ljava/lang/module/ModuleDescriptor$Opens;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Opens;)V
invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
46: aload 2
invokevirtual java.lang.module.ModuleDescriptor.uses:()Ljava/util/Set;
aload 7
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.uses(Ljava/lang/String;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/String;)V
invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
47: StackMap locals: java.lang.module.ModuleDescriptor$Builder
StackMap stack:
aload 2
invokevirtual java.lang.module.ModuleDescriptor.provides:()Ljava/util/Set;
aload 7
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.provides(Ljava/lang/module/ModuleDescriptor$Provides;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Provides;)V
invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
48: aload 2
invokevirtual java.lang.module.ModuleDescriptor.version:()Ljava/util/Optional;
aload 7
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.version(Ljava/lang/module/ModuleDescriptor$Version;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Version;)V
invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
49: aload 2
invokevirtual java.lang.module.ModuleDescriptor.mainClass:()Ljava/util/Optional;
aload 7
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.mainClass(Ljava/lang/String;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/String;)V
invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
50: aload 7
aload 2
invokevirtual java.lang.module.ModuleDescriptor.packages:()Ljava/util/Set;
invokevirtual java.lang.module.ModuleDescriptor$Builder.packages:(Ljava/util/Set;)Ljava/lang/module/ModuleDescriptor$Builder;
pop
51: aload 7
aload 5
invokevirtual java.lang.module.ModuleDescriptor$Builder.packages:(Ljava/util/Set;)Ljava/lang/module/ModuleDescriptor$Builder;
pop
52: aload 7
invokevirtual java.lang.module.ModuleDescriptor$Builder.build:()Ljava/lang/module/ModuleDescriptor;
astore 2
end local 7 53: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.module.ModuleReference.location:()Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.URI
astore 7
start local 7 54: aconst_null
astore 8
start local 8 55: aconst_null
astore 9
start local 9 56: aconst_null
astore 10
start local 10 57: aconst_null
astore 11
start local 11 58: aload 1
instanceof jdk.internal.module.ModuleReferenceImpl
ifeq 64
59: aload 1
checkcast jdk.internal.module.ModuleReferenceImpl
astore 12
start local 12 60: aload 12
invokevirtual jdk.internal.module.ModuleReferenceImpl.moduleTarget:()Ljdk/internal/module/ModuleTarget;
astore 8
61: aload 12
invokevirtual jdk.internal.module.ModuleReferenceImpl.recordedHashes:()Ljdk/internal/module/ModuleHashes;
astore 9
62: aload 12
invokevirtual jdk.internal.module.ModuleReferenceImpl.hasher:()Ljdk/internal/module/ModuleHashes$HashSupplier;
astore 10
63: aload 12
invokevirtual jdk.internal.module.ModuleReferenceImpl.moduleResolution:()Ljdk/internal/module/ModuleResolution;
astore 11
end local 12 64: StackMap locals: jdk.internal.module.ModulePatcher java.lang.module.ModuleReference java.lang.module.ModuleDescriptor java.lang.String java.util.List java.util.Set int java.net.URI jdk.internal.module.ModuleTarget jdk.internal.module.ModuleHashes jdk.internal.module.ModuleHashes$HashSupplier jdk.internal.module.ModuleResolution
StackMap stack:
new jdk.internal.module.ModuleReferenceImpl
dup
aload 2
65: aload 7
66: aload 4
aload 1
invokedynamic get(Ljava/util/List;Ljava/lang/module/ModuleReference;)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/internal/module/ModulePatcher.lambda$17(Ljava/util/List;Ljava/lang/module/ModuleReference;)Ljava/lang/module/ModuleReader; (6)
()Ljava/lang/module/ModuleReader;
67: aload 0
68: aload 8
69: aload 9
70: aload 10
71: aload 11
72: invokespecial jdk.internal.module.ModuleReferenceImpl.<init>:(Ljava/lang/module/ModuleDescriptor;Ljava/net/URI;Ljava/util/function/Supplier;Ljdk/internal/module/ModulePatcher;Ljdk/internal/module/ModuleTarget;Ljdk/internal/module/ModuleHashes;Ljdk/internal/module/ModuleHashes$HashSupplier;Ljdk/internal/module/ModuleResolution;)V
areturn
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 73 0 this Ljdk/internal/module/ModulePatcher;
0 73 1 mref Ljava/lang/module/ModuleReference;
1 73 2 descriptor Ljava/lang/module/ModuleDescriptor;
2 73 3 mn Ljava/lang/String;
3 73 4 paths Ljava/util/List<Ljava/nio/file/Path;>;
6 73 5 packages Ljava/util/Set<Ljava/lang/String;>;
7 73 6 isAutomatic Z
9 32 7 file Ljava/nio/file/Path;
12 19 11 jf Ljava/util/jar/JarFile;
25 32 9 top Ljava/nio/file/Path;
35 36 7 ioe Ljava/io/IOException;
42 53 7 builder Ljava/lang/module/ModuleDescriptor$Builder;
54 73 7 location Ljava/net/URI;
55 73 8 target Ljdk/internal/module/ModuleTarget;
56 73 9 recordedHashes Ljdk/internal/module/ModuleHashes;
57 73 10 hasher Ljdk/internal/module/ModuleHashes$HashSupplier;
58 73 11 mres Ljdk/internal/module/ModuleResolution;
60 64 12 impl Ljdk/internal/module/ModuleReferenceImpl;
Exception table:
from to target type
12 17 18 any
11 20 20 any
7 33 34 Class java.io.IOException
MethodParameters:
Name Flags
mref
public boolean hasPatches();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModulePatcher.map:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/module/ModulePatcher;
java.util.Set<java.lang.String> patchedModules();
descriptor: ()Ljava/util/Set;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModulePatcher.map:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModulePatcher;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
private static java.lang.String toPackageName(java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface java.nio.file.Path.relativize:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 2
start local 2 1: aload 2
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
astore 3
start local 3 2: aload 3
ifnonnull 4
3: aload 0
aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokestatic jdk.internal.module.ModulePatcher.warnIfModuleInfo:(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/lang/String;
areturn
4: StackMap locals: java.nio.file.Path java.nio.file.Path
StackMap stack:
aload 3
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
getstatic java.io.File.separatorChar:C
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 top Ljava/nio/file/Path;
0 5 1 file Ljava/nio/file/Path;
1 5 2 entry Ljava/nio/file/Path;
2 5 3 parent Ljava/nio/file/Path;
MethodParameters:
Name Flags
top
file
private boolean isHidden(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.nio.file.Files.isHidden:(Ljava/nio/file/Path;)Z
1: ireturn
2: StackMap locals:
StackMap stack: java.io.IOException
pop
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/ModulePatcher;
0 4 1 file Ljava/nio/file/Path;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
file
private static java.lang.String toPackageName(java.nio.file.Path, java.util.jar.JarEntry);
descriptor: (Ljava/nio/file/Path;Ljava/util/jar/JarEntry;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc "/"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 3
start local 3 2: iload 3
iconst_m1
if_icmpne 4
3: aload 0
aload 2
invokestatic jdk.internal.module.ModulePatcher.warnIfModuleInfo:(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/lang/String;
areturn
4: StackMap locals: java.lang.String int
StackMap stack:
aload 2
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 file Ljava/nio/file/Path;
0 5 1 entry Ljava/util/jar/JarEntry;
1 5 2 name Ljava/lang/String;
2 5 3 index I
MethodParameters:
Name Flags
file
entry
private static java.lang.String warnIfModuleInfo(java.nio.file.Path, java.lang.String);
descriptor: (Ljava/nio/file/Path;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "module-info.class"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "WARNING: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " ignored in patch: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
ldc ""
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 file Ljava/nio/file/Path;
0 3 1 e Ljava/lang/String;
MethodParameters:
Name Flags
file
e
private static java.nio.file.Path lambda$18(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/file/Path;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arg0 Ljava/lang/String;
private static boolean lambda$1(boolean, java.util.jar.JarEntry);
descriptor: (ZLjava/util/jar/JarEntry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokevirtual java.util.jar.JarEntry.isDirectory:()Z
ifne 3
1: iload 0
ifeq 2
aload 1
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
StackMap locals:
StackMap stack:
2: iconst_1
goto 4
StackMap locals:
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 e Ljava/util/jar/JarEntry;
private static java.lang.String lambda$2(java.nio.file.Path, java.util.jar.JarEntry);
descriptor: (Ljava/nio/file/Path;Ljava/util/jar/JarEntry;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokestatic jdk.internal.module.ModulePatcher.toPackageName:(Ljava/nio/file/Path;Ljava/util/jar/JarEntry;)Ljava/lang/String;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 e Ljava/util/jar/JarEntry;
private static boolean lambda$5(java.nio.file.Path, java.nio.file.attribute.BasicFileAttributes);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.nio.file.attribute.BasicFileAttributes.isRegularFile:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 path Ljava/nio/file/Path;
0 1 1 attrs Ljava/nio/file/attribute/BasicFileAttributes;
private boolean lambda$6(boolean, java.nio.file.Path);
descriptor: (ZLjava/nio/file/Path;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: iload 1
ifeq 2
1: aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual jdk.internal.module.ModulePatcher.isHidden:(Ljava/nio/file/Path;)Z
ifne 3
iconst_1
goto 4
StackMap locals:
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/module/ModulePatcher;
0 5 2 path Ljava/nio/file/Path;
private static java.lang.String lambda$7(java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokestatic jdk.internal.module.ModulePatcher.toPackageName:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 path Ljava/nio/file/Path;
private static java.lang.module.ModuleReader lambda$17(java.util.List, java.lang.module.ModuleReference);
descriptor: (Ljava/util/List;Ljava/lang/module/ModuleReference;)Ljava/lang/module/ModuleReader;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
0: new jdk.internal.module.ModulePatcher$PatchedModuleReader
dup
aload 0
aload 1
invokespecial jdk.internal.module.ModulePatcher$PatchedModuleReader.<init>:(Ljava/util/List;Ljava/lang/module/ModuleReference;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "ModulePatcher.java"
NestMembers:
jdk.internal.module.ModulePatcher$ExplodedResourceFinder jdk.internal.module.ModulePatcher$ExplodedResourceFinder$1 jdk.internal.module.ModulePatcher$JarResourceFinder jdk.internal.module.ModulePatcher$JarResourceFinder$1 jdk.internal.module.ModulePatcher$PatchedModuleReader jdk.internal.module.ModulePatcher$PatchedModuleReader$1 jdk.internal.module.ModulePatcher$ResourceFinder
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Builder = java.lang.module.ModuleDescriptor$Builder of java.lang.module.ModuleDescriptor
public final Exports = java.lang.module.ModuleDescriptor$Exports of java.lang.module.ModuleDescriptor
public final Modifier = java.lang.module.ModuleDescriptor$Modifier of java.lang.module.ModuleDescriptor
public final Opens = java.lang.module.ModuleDescriptor$Opens of java.lang.module.ModuleDescriptor
public final Provides = java.lang.module.ModuleDescriptor$Provides of java.lang.module.ModuleDescriptor
public final Requires = java.lang.module.ModuleDescriptor$Requires of java.lang.module.ModuleDescriptor
public final Version = java.lang.module.ModuleDescriptor$Version of java.lang.module.ModuleDescriptor
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract HashSupplier = jdk.internal.module.ModuleHashes$HashSupplier of jdk.internal.module.ModuleHashes
private ExplodedResourceFinder = jdk.internal.module.ModulePatcher$ExplodedResourceFinder of jdk.internal.module.ModulePatcher
private JarResourceFinder = jdk.internal.module.ModulePatcher$JarResourceFinder of jdk.internal.module.ModulePatcher
public PatchedModuleReader = jdk.internal.module.ModulePatcher$PatchedModuleReader of jdk.internal.module.ModulePatcher
private abstract ResourceFinder = jdk.internal.module.ModulePatcher$ResourceFinder of jdk.internal.module.ModulePatcher