public class jdk.internal.util.jar.VersionedStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.util.jar.VersionedStream
super_class: java.lang.Object
{
private static final java.lang.String META_INF_VERSIONS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "META-INF/versions/"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/util/jar/VersionedStream;
public static java.util.stream.Stream<java.util.jar.JarEntry> stream(java.util.jar.JarFile);
descriptor: (Ljava/util/jar/JarFile;)Ljava/util/stream/Stream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.util.jar.JarFile.isMultiRelease:()Z
ifeq 8
1: aload 0
invokevirtual java.util.jar.JarFile.getVersion:()Ljava/lang/Runtime$Version;
invokevirtual java.lang.Runtime$Version.major:()I
istore 1
start local 1 2: aload 0
invokevirtual java.util.jar.JarFile.stream:()Ljava/util/stream/Stream;
3: iload 1
invokedynamic apply(I)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/util/jar/VersionedStream.lambda$0(ILjava/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;
4: 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
java/util/Objects.nonNull(Ljava/lang/Object;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
5: invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
6: aload 0
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic apply(Ljava/util/jar/JarFile;)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/util/jar/JarFile.getJarEntry(Ljava/lang/String;)Ljava/util/jar/JarEntry; (5)
(Ljava/lang/String;)Ljava/util/jar/JarEntry;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
7: areturn
end local 1 8: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.jar.JarFile.stream:()Ljava/util/stream/Stream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 jf Ljava/util/jar/JarFile;
2 8 1 version I
Signature: (Ljava/util/jar/JarFile;)Ljava/util/stream/Stream<Ljava/util/jar/JarEntry;>;
MethodParameters:
Name Flags
jf
private static java.lang.String getBaseSuffix(java.util.jar.JarEntry, int);
descriptor: (Ljava/util/jar/JarEntry;I)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc "META-INF/versions/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 11
2: ldc "META-INF/versions/"
invokevirtual java.lang.String.length:()I
istore 3
start local 3 3: aload 2
bipush 47
iload 3
invokevirtual java.lang.String.indexOf:(II)I
istore 4
start local 4 4: iload 4
iconst_m1
if_icmpeq 5
iload 4
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmpne 6
5: StackMap locals: java.lang.String int int
StackMap stack:
aconst_null
areturn
6: StackMap locals:
StackMap stack:
aload 2
iload 3
iload 4
bipush 10
invokestatic java.lang.Integer.parseInt:(Ljava/lang/CharSequence;III)I
iload 1
if_icmple 10
7: aconst_null
areturn
8: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
9: aconst_null
areturn
10: StackMap locals:
StackMap stack:
aload 2
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 4 end local 3 11: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 je Ljava/util/jar/JarEntry;
0 12 1 version I
1 12 2 name Ljava/lang/String;
3 11 3 len I
4 11 4 index I
Exception table:
from to target type
6 7 8 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
je
version
private static java.lang.String lambda$0(int, java.util.jar.JarEntry);
descriptor: (ILjava/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 1
iload 0
invokestatic jdk.internal.util.jar.VersionedStream.getBaseSuffix:(Ljava/util/jar/JarEntry;I)Ljava/lang/String;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 je Ljava/util/jar/JarEntry;
}
SourceFile: "VersionedStream.java"
InnerClasses:
public final Version = java.lang.Runtime$Version of java.lang.Runtime
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles