class jdk.internal.module.ModulePathValidator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.module.ModulePathValidator
super_class: java.lang.Object
{
private static final java.lang.String MODULE_INFO;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "module-info.class"
private static final java.lang.String INDENT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: " "
private final java.util.Map<java.lang.String, java.lang.module.ModuleReference> nameToModule;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/module/ModuleReference;>;
private final java.util.Map<java.lang.String, java.lang.module.ModuleReference> packageToModule;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/module/ModuleReference;>;
private final java.io.PrintStream out;
descriptor: Ljava/io/PrintStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int errorCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private void <init>(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.internal.module.ModulePathValidator.nameToModule:Ljava/util/Map;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.internal.module.ModulePathValidator.packageToModule:Ljava/util/Map;
3: aload 0
aload 1
putfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/module/ModulePathValidator;
0 5 1 out Ljava/io/PrintStream;
MethodParameters:
Name Flags
out
static int scanAllModules(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new jdk.internal.module.ModulePathValidator
dup
aload 0
invokespecial jdk.internal.module.ModulePathValidator.<init>:(Ljava/io/PrintStream;)V
astore 1
start local 1 1: ldc "jdk.module.upgrade.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnull 6
3: aload 2
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)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/ModulePathValidator.lambda$10(Ljava/lang/String;)Ljava/nio/file/Path; (6)
(Ljava/lang/String;)Ljava/nio/file/Path;
4: invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
5: aload 1
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljdk/internal/module/ModulePathValidator;)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/internal/module/ModulePathValidator.scan(Ljava/nio/file/Path;)V (7)
(Ljava/nio/file/Path;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
6: StackMap locals: jdk.internal.module.ModulePathValidator java.lang.String
StackMap stack:
invokestatic java.lang.module.ModuleFinder.ofSystem:()Ljava/lang/module/ModuleFinder;
invokeinterface java.lang.module.ModuleFinder.findAll:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
7: 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/ModuleReference.descriptor()Ljava/lang/module/ModuleDescriptor; (5)
(Ljava/lang/module/ModuleReference;)Ljava/lang/module/ModuleDescriptor;
invokestatic java.util.Comparator.comparing:(Ljava/util/function/Function;)Ljava/util/Comparator;
invokeinterface java.util.stream.Stream.sorted:(Ljava/util/Comparator;)Ljava/util/stream/Stream;
8: aload 1
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljdk/internal/module/ModulePathValidator;)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/internal/module/ModulePathValidator.process(Ljava/lang/module/ModuleReference;)V (7)
(Ljava/lang/module/ModuleReference;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
9: ldc "jdk.module.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
10: aload 2
ifnull 14
11: aload 2
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)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/ModulePathValidator.lambda$11(Ljava/lang/String;)Ljava/nio/file/Path; (6)
(Ljava/lang/String;)Ljava/nio/file/Path;
12: invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
13: aload 1
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljdk/internal/module/ModulePathValidator;)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/internal/module/ModulePathValidator.scan(Ljava/nio/file/Path;)V (7)
(Ljava/nio/file/Path;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
14: StackMap locals:
StackMap stack:
aload 1
getfield jdk.internal.module.ModulePathValidator.errorCount:I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 out Ljava/io/PrintStream;
1 15 1 validator Ljdk/internal/module/ModulePathValidator;
2 15 2 value Ljava/lang/String;
MethodParameters:
Name Flags
out
private void printModule(java.lang.module.ModuleReference);
descriptor: (Ljava/lang/module/ModuleReference;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.module.ModuleReference.location:()Ljava/util/Optional;
1: 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/ModulePathValidator.lambda$6(Ljava/net/URI;)Z (6)
(Ljava/net/URI;)Z
invokevirtual java.util.Optional.filter:(Ljava/util/function/Predicate;)Ljava/util/Optional;
2: aload 0
invokedynamic accept(Ljdk/internal/module/ModulePathValidator;)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/internal/module/ModulePathValidator.lambda$7(Ljava/net/URI;)V (7)
(Ljava/net/URI;)V
invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
3: aload 1
invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
astore 2
start local 2 4: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
aload 2
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
5: aload 2
invokevirtual java.lang.module.ModuleDescriptor.isAutomatic:()Z
ifeq 7
6: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
ldc " automatic"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
7: StackMap locals: java.lang.module.ModuleDescriptor
StackMap stack:
aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/module/ModulePathValidator;
0 9 1 mref Ljava/lang/module/ModuleReference;
4 9 2 descriptor Ljava/lang/module/ModuleDescriptor;
MethodParameters:
Name Flags
mref
private void process(java.lang.module.ModuleReference);
descriptor: (Ljava/lang/module/ModuleReference;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield jdk.internal.module.ModulePathValidator.nameToModule:Ljava/util/Map;
aload 2
aload 1
invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.module.ModuleReference
astore 3
start local 3 2: aload 3
ifnull 7
3: aload 0
aload 1
invokevirtual jdk.internal.module.ModulePathValidator.printModule:(Ljava/lang/module/ModuleReference;)V
4: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
ldc " shadowed by "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
5: aload 0
aload 3
invokevirtual jdk.internal.module.ModulePathValidator.printModule:(Ljava/lang/module/ModuleReference;)V
6: goto 21
7: StackMap locals: java.lang.String java.lang.module.ModuleReference
StackMap stack:
iconst_1
istore 4
start local 4 8: aload 1
invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.packages:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 20
StackMap locals: jdk.internal.module.ModulePathValidator java.lang.module.ModuleReference java.lang.String java.lang.module.ModuleReference int top java.util.Iterator
StackMap stack:
9: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 10: aload 0
getfield jdk.internal.module.ModulePathValidator.packageToModule:Ljava/util/Map;
aload 5
aload 1
invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.module.ModuleReference
astore 3
11: aload 3
ifnull 20
12: iload 4
ifeq 16
13: aload 0
aload 1
invokevirtual jdk.internal.module.ModulePathValidator.printModule:(Ljava/lang/module/ModuleReference;)V
14: iconst_0
istore 4
15: aload 0
dup
getfield jdk.internal.module.ModulePathValidator.errorCount:I
iconst_1
iadd
putfield jdk.internal.module.ModulePathValidator.errorCount:I
16: StackMap locals: jdk.internal.module.ModulePathValidator java.lang.module.ModuleReference java.lang.String java.lang.module.ModuleReference int java.lang.String java.util.Iterator
StackMap stack:
aload 3
invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
astore 7
start local 7 17: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " contains "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: ldc " conflicts with module "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 7 end local 5 20: StackMap locals: jdk.internal.module.ModulePathValidator java.lang.module.ModuleReference java.lang.String java.lang.module.ModuleReference int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 4 21: StackMap locals: jdk.internal.module.ModulePathValidator java.lang.module.ModuleReference java.lang.String java.lang.module.ModuleReference
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/internal/module/ModulePathValidator;
0 22 1 mref Ljava/lang/module/ModuleReference;
1 22 2 name Ljava/lang/String;
2 22 3 previous Ljava/lang/module/ModuleReference;
8 21 4 first Z
10 20 5 pkg Ljava/lang/String;
17 20 7 mn Ljava/lang/String;
MethodParameters:
Name Flags
mref
private void scan(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc Ljava/nio/file/attribute/BasicFileAttributes;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.readAttributes:(Ljava/nio/file/Path;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/BasicFileAttributes;
astore 2
start local 2 1: goto 8
end local 2 StackMap locals:
StackMap stack: java.nio.file.NoSuchFileException
2: pop
3: return
4: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 5: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
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
6: aload 0
dup
getfield jdk.internal.module.ModulePathValidator.errorCount:I
iconst_1
iadd
putfield jdk.internal.module.ModulePathValidator.errorCount:I
7: return
end local 3 start local 2 8: StackMap locals: java.nio.file.attribute.BasicFileAttributes
StackMap stack:
aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 3
start local 3 9: aload 2
invokeinterface java.nio.file.attribute.BasicFileAttributes.isRegularFile:()Z
ifeq 12
aload 3
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 12
10: aload 0
aload 1
invokevirtual jdk.internal.module.ModulePathValidator.scanModule:(Ljava/nio/file/Path;)Ljava/util/Optional;
aload 0
invokedynamic accept(Ljdk/internal/module/ModulePathValidator;)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/internal/module/ModulePathValidator.process(Ljava/lang/module/ModuleReference;)V (7)
(Ljava/lang/module/ModuleReference;)V
invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
11: goto 18
StackMap locals: java.lang.String
StackMap stack:
12: aload 2
invokeinterface java.nio.file.attribute.BasicFileAttributes.isDirectory:()Z
ifeq 18
13: aload 1
ldc "module-info.class"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
start local 5 14: aload 5
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 17
15: aload 0
aload 1
invokevirtual jdk.internal.module.ModulePathValidator.scanModule:(Ljava/nio/file/Path;)Ljava/util/Optional;
aload 0
invokedynamic accept(Ljdk/internal/module/ModulePathValidator;)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/internal/module/ModulePathValidator.process(Ljava/lang/module/ModuleReference;)V (7)
(Ljava/lang/module/ModuleReference;)V
invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
16: goto 18
17: StackMap locals: jdk.internal.module.ModulePathValidator java.nio.file.Path java.nio.file.attribute.BasicFileAttributes java.lang.String top java.nio.file.Path
StackMap stack:
aload 0
aload 1
invokevirtual jdk.internal.module.ModulePathValidator.scanDirectory:(Ljava/nio/file/Path;)V
end local 5 18: StackMap locals: jdk.internal.module.ModulePathValidator java.nio.file.Path java.nio.file.attribute.BasicFileAttributes java.lang.String
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/internal/module/ModulePathValidator;
0 19 1 entry Ljava/nio/file/Path;
1 2 2 attrs Ljava/nio/file/attribute/BasicFileAttributes;
8 19 2 attrs Ljava/nio/file/attribute/BasicFileAttributes;
5 8 3 ioe Ljava/io/IOException;
9 19 3 fn Ljava/lang/String;
14 18 5 mi Ljava/nio/file/Path;
Exception table:
from to target type
0 1 2 Class java.nio.file.NoSuchFileException
0 1 4 Class java.io.IOException
MethodParameters:
Name Flags
entry
private void scanDirectory(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=13, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: aload 1
invokestatic java.nio.file.Files.newDirectoryStream:(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;
astore 4
start local 4 2: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 5
start local 5 3: aload 4
invokeinterface java.nio.file.DirectoryStream.iterator:()Ljava/util/Iterator;
astore 7
goto 31
StackMap locals: jdk.internal.module.ModulePathValidator java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream java.util.Map top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 6
start local 6 5: aload 6
ldc Ljava/nio/file/attribute/BasicFileAttributes;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.readAttributes:(Ljava/nio/file/Path;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/BasicFileAttributes;
astore 8
start local 8 6: goto 11
end local 8 StackMap locals: jdk.internal.module.ModulePathValidator java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream java.util.Map java.nio.file.Path java.util.Iterator
StackMap stack: java.io.IOException
7: astore 9
start local 9 8: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 9
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
9: aload 0
dup
getfield jdk.internal.module.ModulePathValidator.errorCount:I
iconst_1
iadd
putfield jdk.internal.module.ModulePathValidator.errorCount:I
10: goto 31
end local 9 start local 8 11: StackMap locals: java.nio.file.attribute.BasicFileAttributes
StackMap stack:
aconst_null
astore 9
start local 9 12: aload 6
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 10
start local 10 13: aload 8
invokeinterface java.nio.file.attribute.BasicFileAttributes.isRegularFile:()Z
ifeq 16
aload 10
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 16
14: aload 0
aload 6
invokevirtual jdk.internal.module.ModulePathValidator.scanModule:(Ljava/nio/file/Path;)Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.module.ModuleReference
astore 9
15: goto 20
StackMap locals: java.lang.module.ModuleReference java.lang.String
StackMap stack:
16: aload 8
invokeinterface java.nio.file.attribute.BasicFileAttributes.isDirectory:()Z
ifeq 20
17: aload 6
ldc "module-info.class"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 11
start local 11 18: aload 11
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 20
19: aload 0
aload 6
invokevirtual jdk.internal.module.ModulePathValidator.scanModule:(Ljava/nio/file/Path;)Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.module.ModuleReference
astore 9
end local 11 20: StackMap locals:
StackMap stack:
aload 9
ifnull 31
21: aload 9
invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
astore 11
start local 11 22: aload 5
aload 11
aload 6
invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.file.Path
astore 12
start local 12 23: aload 12
ifnull 30
24: aload 0
aload 9
invokevirtual jdk.internal.module.ModulePathValidator.printModule:(Ljava/lang/module/ModuleReference;)V
25: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " contains same module as "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
26: aload 12
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
27: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
28: aload 0
dup
getfield jdk.internal.module.ModulePathValidator.errorCount:I
iconst_1
iadd
putfield jdk.internal.module.ModulePathValidator.errorCount:I
29: goto 31
30: StackMap locals: java.lang.String java.nio.file.Path
StackMap stack:
aload 0
aload 9
invokevirtual jdk.internal.module.ModulePathValidator.process:(Ljava/lang/module/ModuleReference;)V
end local 12 end local 11 end local 10 end local 9 end local 8 end local 6 31: StackMap locals: jdk.internal.module.ModulePathValidator java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream java.util.Map top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 5 32: aload 4
ifnull 41
aload 4
invokeinterface java.nio.file.DirectoryStream.close:()V
goto 41
StackMap locals: jdk.internal.module.ModulePathValidator java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream
StackMap stack: java.lang.Throwable
33: astore 2
aload 4
ifnull 34
aload 4
invokeinterface java.nio.file.DirectoryStream.close:()V
end local 4 StackMap locals:
StackMap stack:
34: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
35: astore 3
aload 2
ifnonnull 36
aload 3
astore 2
goto 37
StackMap locals:
StackMap stack:
36: aload 2
aload 3
if_acmpeq 37
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
37: aload 2
athrow
StackMap locals: jdk.internal.module.ModulePathValidator java.nio.file.Path
StackMap stack: java.io.IOException
38: astore 2
start local 2 39: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
40: aload 0
dup
getfield jdk.internal.module.ModulePathValidator.errorCount:I
iconst_1
iadd
putfield jdk.internal.module.ModulePathValidator.errorCount:I
end local 2 41: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Ljdk/internal/module/ModulePathValidator;
0 42 1 dir Ljava/nio/file/Path;
2 34 4 stream Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;
3 32 5 moduleToEntry Ljava/util/Map<Ljava/lang/String;Ljava/nio/file/Path;>;
5 31 6 entry Ljava/nio/file/Path;
6 7 8 attrs Ljava/nio/file/attribute/BasicFileAttributes;
11 31 8 attrs Ljava/nio/file/attribute/BasicFileAttributes;
8 11 9 ioe Ljava/io/IOException;
12 31 9 mref Ljava/lang/module/ModuleReference;
13 31 10 fn Ljava/lang/String;
18 20 11 mi Ljava/nio/file/Path;
22 31 11 name Ljava/lang/String;
23 31 12 previous Ljava/nio/file/Path;
39 41 2 ioe Ljava/io/IOException;
Exception table:
from to target type
5 6 7 Class java.io.IOException
2 32 33 any
1 35 35 any
0 38 38 Class java.io.IOException
MethodParameters:
Name Flags
dir
private java.util.Optional<java.lang.module.ModuleReference> scanModule(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/util/Optional;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: iconst_1
anewarray java.nio.file.Path
dup
iconst_0
aload 1
aastore
invokestatic java.lang.module.ModuleFinder.of:([Ljava/nio/file/Path;)Ljava/lang/module/ModuleFinder;
astore 2
start local 2 1: aload 2
invokeinterface java.lang.module.ModuleFinder.findAll:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
2: areturn
3: StackMap locals: jdk.internal.module.ModulePathValidator java.nio.file.Path java.lang.module.ModuleFinder
StackMap stack: java.lang.module.FindException
astore 3
start local 3 4: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
aload 1
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
5: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.module.FindException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: aload 3
invokevirtual java.lang.module.FindException.getCause:()Ljava/lang/Throwable;
astore 4
start local 4 7: aload 4
ifnull 9
8: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
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
9: StackMap locals: java.lang.module.FindException java.lang.Throwable
StackMap stack:
aload 0
dup
getfield jdk.internal.module.ModulePathValidator.errorCount:I
iconst_1
iadd
putfield jdk.internal.module.ModulePathValidator.errorCount:I
10: invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/module/ModulePathValidator;
0 11 1 entry Ljava/nio/file/Path;
1 11 2 finder Ljava/lang/module/ModuleFinder;
4 11 3 e Ljava/lang/module/FindException;
7 11 4 cause Ljava/lang/Throwable;
Exception table:
from to target type
1 2 3 Class java.lang.module.FindException
Signature: (Ljava/nio/file/Path;)Ljava/util/Optional<Ljava/lang/module/ModuleReference;>;
MethodParameters:
Name Flags
entry
private static boolean isJrt(java.net.URI);
descriptor: (Ljava/net/URI;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
ldc "jrt"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 uri Ljava/net/URI;
MethodParameters:
Name Flags
uri
private static java.nio.file.Path lambda$10(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.Path.of:(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 java.nio.file.Path lambda$11(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.Path.of:(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$6(java.net.URI);
descriptor: (Ljava/net/URI;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.internal.module.ModulePathValidator.isJrt:(Ljava/net/URI;)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 uri Ljava/net/URI;
private void lambda$7(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ModulePathValidator.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModulePathValidator;
0 1 1 uri Ljava/net/URI;
}
SourceFile: "ModulePathValidator.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles