public class com.sun.tools.jdeps.VersionHelper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.jdeps.VersionHelper
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/"
private static final java.util.Map<java.lang.String, java.lang.String> nameToVersion;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lcom/sun/tools/jdeps/VersionHelper;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.sun.tools.jdeps.VersionHelper.$assertionsDisabled:Z
3: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putstatic com.sun.tools.jdeps.VersionHelper.nameToVersion:Ljava/util/Map;
return
LocalVariableTable:
Start End Slot Name Signature
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 Lcom/sun/tools/jdeps/VersionHelper;
public static java.lang.String get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic com.sun.tools.jdeps.VersionHelper.nameToVersion:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 2
1: new java.lang.StringBuilder
dup
getstatic com.sun.tools.jdeps.VersionHelper.nameToVersion:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 classname Ljava/lang/String;
MethodParameters:
Name Flags
classname
public static void add(java.util.jar.JarFile, java.util.jar.JarEntry, com.sun.tools.classfile.ClassFile);
descriptor: (Ljava/util/jar/JarFile;Ljava/util/jar/JarEntry;Lcom/sun/tools/classfile/ClassFile;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.util.jar.JarEntry.getRealName:()Ljava/lang/String;
astore 3
start local 3 1: aload 3
ldc "META-INF/versions/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 19
2: ldc "META-INF/versions/"
invokevirtual java.lang.String.length:()I
istore 4
start local 4 3: aload 3
bipush 47
iload 4
invokevirtual java.lang.String.indexOf:(II)I
istore 5
start local 5 4: iload 5
ifle 16
5: aload 3
iload 4
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 6
start local 6 6: getstatic com.sun.tools.jdeps.VersionHelper.$assertionsDisabled:Z
ifne 7
aload 6
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
bipush 8
if_icmpgt 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: java.util.jar.JarFile java.util.jar.JarEntry com.sun.tools.classfile.ClassFile java.lang.String int int java.lang.String
StackMap stack:
aload 2
invokevirtual com.sun.tools.classfile.ClassFile.getName:()Ljava/lang/String;
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 7
start local 7 8: getstatic com.sun.tools.jdeps.VersionHelper.nameToVersion:Ljava/util/Map;
aload 7
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 14
9: aload 6
getstatic com.sun.tools.jdeps.VersionHelper.nameToVersion:Ljava/util/Map;
aload 7
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 19
10: new com.sun.tools.jdeps.MultiReleaseException
dup
11: ldc "err.multirelease.version.associated"
iconst_3
anewarray java.lang.Object
dup
iconst_0
12: aload 7
aastore
dup
iconst_1
getstatic com.sun.tools.jdeps.VersionHelper.nameToVersion:Ljava/util/Map;
aload 7
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
aastore
dup
iconst_2
aload 6
13: aastore
invokespecial com.sun.tools.jdeps.MultiReleaseException.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
athrow
14: StackMap locals: java.lang.String
StackMap stack:
getstatic com.sun.tools.jdeps.VersionHelper.nameToVersion:Ljava/util/Map;
aload 7
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 6 15: goto 19
16: StackMap locals:
StackMap stack:
new com.sun.tools.jdeps.MultiReleaseException
dup
ldc "err.multirelease.jar.malformed"
iconst_2
anewarray java.lang.Object
dup
iconst_0
17: aload 0
invokevirtual java.util.jar.JarFile.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 3
18: aastore
invokespecial com.sun.tools.jdeps.MultiReleaseException.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
athrow
end local 5 end local 4 19: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 jarfile Ljava/util/jar/JarFile;
0 20 1 e Ljava/util/jar/JarEntry;
0 20 2 cf Lcom/sun/tools/classfile/ClassFile;
1 20 3 realName Ljava/lang/String;
3 19 4 len I
4 19 5 n I
6 15 6 version Ljava/lang/String;
8 15 7 name Ljava/lang/String;
Exceptions:
throws com.sun.tools.classfile.ConstantPoolException
MethodParameters:
Name Flags
jarfile
e
cf
}
SourceFile: "VersionHelper.java"