public class sun.tools.serialver.SerialVer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.serialver.SerialVer
super_class: java.lang.Object
{
static java.net.URLClassLoader loader;
descriptor: Ljava/net/URLClassLoader;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic sun.tools.serialver.SerialVer.loader:Ljava/net/URLClassLoader;
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 Lsun/tools/serialver/SerialVer;
static void initializeLoader(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 1: aload 1
arraylength
istore 2
start local 2 2: iload 2
anewarray java.net.URL
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 7
5: StackMap locals: java.lang.String java.lang.String[] int java.net.URL[] int
StackMap stack:
aload 3
iload 4
aload 1
iload 4
aaload
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toUri:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
aastore
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 2
if_icmplt 5
end local 4 8: new java.net.URLClassLoader
dup
aload 3
invokespecial java.net.URLClassLoader.<init>:([Ljava/net/URL;)V
putstatic sun.tools.serialver.SerialVer.loader:Ljava/net/URLClassLoader;
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 cp Ljava/lang/String;
1 10 1 paths [Ljava/lang/String;
2 10 2 count I
3 10 3 urls [Ljava/net/URL;
4 8 4 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cp
static java.lang.String serialSyntax(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
bipush 36
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpeq 5
3: aload 0
invokestatic sun.tools.serialver.SerialVer.resolveClass:(Ljava/lang/String;)Ljava/lang/String;
astore 1
4: goto 23
5: StackMap locals: java.lang.String int
StackMap stack:
aload 0
invokestatic sun.tools.serialver.SerialVer.resolveClass:(Ljava/lang/String;)Ljava/lang/String;
astore 1
6: iconst_1
istore 2
7: goto 9
StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
8: pop
9: StackMap locals:
StackMap stack:
iload 2
ifne 21
10: new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 3
start local 3 11: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 12: goto 19
start local 5 13: StackMap locals: java.lang.StringBuilder java.lang.String int
StackMap stack:
aload 3
iload 5
bipush 36
invokevirtual java.lang.StringBuilder.setCharAt:(IC)V
14: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
15: aload 4
invokestatic sun.tools.serialver.SerialVer.resolveClass:(Ljava/lang/String;)Ljava/lang/String;
astore 1
16: iconst_1
istore 2
17: goto 19
StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
18: pop
end local 5 19: StackMap locals:
StackMap stack:
aload 4
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
dup
istore 5
start local 5 20: iconst_m1
if_icmpeq 21
iload 2
ifeq 13
end local 5 end local 4 end local 3 21: StackMap locals:
StackMap stack:
iload 2
ifne 23
22: new java.lang.ClassNotFoundException
dup
invokespecial java.lang.ClassNotFoundException.<init>:()V
athrow
23: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 classname Ljava/lang/String;
1 24 1 ret Ljava/lang/String;
2 24 2 classFound Z
11 21 3 workBuffer Ljava/lang/StringBuilder;
12 21 4 workName Ljava/lang/String;
13 19 5 i I
20 21 5 i I
Exception table:
from to target type
5 7 8 Class java.lang.ClassNotFoundException
14 17 18 Class java.lang.ClassNotFoundException
Exceptions:
throws java.lang.ClassNotFoundException
MethodParameters:
Name Flags
classname
static java.lang.String resolveClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
iconst_0
getstatic sun.tools.serialver.SerialVer.loader:Ljava/net/URLClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 1
start local 1 1: aload 1
invokestatic java.io.ObjectStreamClass.lookup:(Ljava/lang/Class;)Ljava/io/ObjectStreamClass;
astore 2
start local 2 2: aload 2
ifnull 6
3: new java.lang.StringBuilder
dup
ldc " private static final long serialVersionUID = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 2
invokevirtual java.io.ObjectStreamClass.getSerialVersionUID:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "L;"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
6: StackMap locals: java.lang.Class java.io.ObjectStreamClass
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 classname Ljava/lang/String;
1 7 1 cl Ljava/lang/Class<*>;
2 7 2 desc Ljava/io/ObjectStreamClass;
Exceptions:
throws java.lang.ClassNotFoundException
MethodParameters:
Name Flags
classname
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
arraylength
ifne 5
3: invokestatic sun.tools.serialver.SerialVer.usage:()V
4: iconst_1
invokestatic java.lang.System.exit:(I)V
5: StackMap locals: java.lang.String int
StackMap stack:
iconst_0
istore 2
goto 19
6: StackMap locals:
StackMap stack:
aload 0
iload 2
aaload
ldc "-classpath"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 14
7: iload 2
iconst_1
iadd
aload 0
arraylength
if_icmpeq 8
aload 0
iload 2
iconst_1
iadd
aaload
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 11
8: StackMap locals:
StackMap stack:
getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "error.missing.classpath"
invokestatic sun.tools.serialver.Res.getText:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: invokestatic sun.tools.serialver.SerialVer.usage:()V
10: iconst_1
invokestatic java.lang.System.exit:(I)V
11: StackMap locals:
StackMap stack:
new java.lang.String
dup
aload 0
iload 2
iconst_1
iadd
aaload
invokespecial java.lang.String.<init>:(Ljava/lang/String;)V
astore 1
12: iinc 2 1
13: goto 18
StackMap locals:
StackMap stack:
14: aload 0
iload 2
aaload
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 20
15: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "invalid.flag"
aload 0
iload 2
aaload
invokestatic sun.tools.serialver.Res.getText:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
16: invokestatic sun.tools.serialver.SerialVer.usage:()V
17: iconst_1
invokestatic java.lang.System.exit:(I)V
18: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
19: iload 2
aload 0
arraylength
if_icmplt 6
20: StackMap locals:
StackMap stack:
aload 1
ifnonnull 24
21: ldc "env.class.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
22: aload 1
ifnonnull 24
23: ldc "."
astore 1
24: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.tools.serialver.SerialVer.initializeLoader:(Ljava/lang/String;)V
25: goto 32
StackMap locals:
StackMap stack: java.net.MalformedURLException
26: pop
27: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "error.parsing.classpath"
aload 1
invokestatic sun.tools.serialver.Res.getText:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
28: iconst_2
invokestatic java.lang.System.exit:(I)V
goto 32
29: StackMap locals:
StackMap stack: java.io.IOException
pop
30: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "error.parsing.classpath"
aload 1
invokestatic sun.tools.serialver.Res.getText:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
31: iconst_3
invokestatic java.lang.System.exit:(I)V
32: StackMap locals:
StackMap stack:
iload 2
aload 0
arraylength
if_icmpne 35
33: invokestatic sun.tools.serialver.SerialVer.usage:()V
34: iconst_1
invokestatic java.lang.System.exit:(I)V
35: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 36: iload 2
istore 2
goto 49
37: StackMap locals: int
StackMap stack:
aload 0
iload 2
aaload
invokestatic sun.tools.serialver.SerialVer.serialSyntax:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 38: aload 4
ifnull 40
39: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 0
iload 2
aaload
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 4
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
goto 48
40: StackMap locals: java.lang.String
StackMap stack:
getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "NotSerializable"
41: aload 0
iload 2
aaload
42: invokestatic sun.tools.serialver.Res.getText:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
43: iconst_1
istore 3
end local 4 44: goto 48
StackMap locals: java.lang.String[] java.lang.String int int
StackMap stack: java.lang.ClassNotFoundException
45: pop
46: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "ClassNotFound"
aload 0
iload 2
aaload
invokestatic sun.tools.serialver.Res.getText:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
47: iconst_1
istore 3
48: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
49: iload 2
aload 0
arraylength
if_icmplt 37
50: iload 3
ifeq 52
51: iconst_1
invokestatic java.lang.System.exit:(I)V
52: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 53 0 args [Ljava/lang/String;
1 53 1 envcp Ljava/lang/String;
2 53 2 i I
36 53 3 exitFlag Z
38 44 4 syntax Ljava/lang/String;
Exception table:
from to target type
24 25 26 Class java.net.MalformedURLException
24 25 29 Class java.io.IOException
37 44 45 Class java.lang.ClassNotFoundException
MethodParameters:
Name Flags
args
public static void usage();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "usage"
invokestatic sun.tools.serialver.Res.getText:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "SerialVer.java"