public class org.glassfish.grizzly.utils.JdkVersion implements java.lang.Comparable<org.glassfish.grizzly.utils.JdkVersion>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.utils.JdkVersion
super_class: java.lang.Object
{
private static final java.util.logging.Logger LOGGER;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern VERSION_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.glassfish.grizzly.utils.JdkVersion UNKNOWN_VERSION;
descriptor: Lorg/glassfish/grizzly/utils/JdkVersion;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.glassfish.grizzly.utils.JdkVersion JDK_VERSION;
descriptor: Lorg/glassfish/grizzly/utils/JdkVersion;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final int major;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int minor;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int maintenance;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int update;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/utils/JdkVersion;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.utils.JdkVersion.LOGGER:Ljava/util/logging/Logger;
1: ldc "([0-9]+)(\\.([0-9]+))?(\\.([0-9]+))?([_\\.]([0-9]+))?.*"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.glassfish.grizzly.utils.JdkVersion.VERSION_PATTERN:Ljava/util/regex/Pattern;
2: new org.glassfish.grizzly.utils.JdkVersion
dup
iconst_m1
iconst_m1
iconst_m1
iconst_m1
invokespecial org.glassfish.grizzly.utils.JdkVersion.<init>:(IIII)V
putstatic org.glassfish.grizzly.utils.JdkVersion.UNKNOWN_VERSION:Lorg/glassfish/grizzly/utils/JdkVersion;
3: ldc "java.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic org.glassfish.grizzly.utils.JdkVersion.parseVersion:(Ljava/lang/String;)Lorg/glassfish/grizzly/utils/JdkVersion;
putstatic org.glassfish.grizzly.utils.JdkVersion.JDK_VERSION:Lorg/glassfish/grizzly/utils/JdkVersion;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(int, int, int, int);
descriptor: (IIII)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield org.glassfish.grizzly.utils.JdkVersion.major:I
2: aload 0
iload 2
putfield org.glassfish.grizzly.utils.JdkVersion.minor:I
3: aload 0
iload 3
putfield org.glassfish.grizzly.utils.JdkVersion.maintenance:I
4: aload 0
iload 4
putfield org.glassfish.grizzly.utils.JdkVersion.update:I
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/utils/JdkVersion;
0 6 1 major I
0 6 2 minor I
0 6 3 maintenance I
0 6 4 update I
MethodParameters:
Name Flags
major final
minor final
maintenance final
update final
public static org.glassfish.grizzly.utils.JdkVersion parseVersion(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/glassfish/grizzly/utils/JdkVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.utils.JdkVersion.VERSION_PATTERN:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 1
start local 1 1: aload 1
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 4
2: new org.glassfish.grizzly.utils.JdkVersion
dup
aload 1
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic org.glassfish.grizzly.utils.JdkVersion.parseInt:(Ljava/lang/String;)I
aload 1
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic org.glassfish.grizzly.utils.JdkVersion.parseInt:(Ljava/lang/String;)I
aload 1
iconst_5
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic org.glassfish.grizzly.utils.JdkVersion.parseInt:(Ljava/lang/String;)I
aload 1
bipush 7
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic org.glassfish.grizzly.utils.JdkVersion.parseInt:(Ljava/lang/String;)I
invokespecial org.glassfish.grizzly.utils.JdkVersion.<init>:(IIII)V
3: areturn
4: StackMap locals: java.util.regex.Matcher
StackMap stack:
getstatic org.glassfish.grizzly.utils.JdkVersion.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Can't parse the JDK version {0}"
aload 0
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
end local 1 5: goto 8
StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
6: astore 1
start local 1 7: getstatic org.glassfish.grizzly.utils.JdkVersion.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Error parsing the JDK version "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 8: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.utils.JdkVersion.UNKNOWN_VERSION:Lorg/glassfish/grizzly/utils/JdkVersion;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 versionString Ljava/lang/String;
1 5 1 matcher Ljava/util/regex/Matcher;
7 8 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 6 Class java.lang.Exception
4 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
versionString final
public static org.glassfish.grizzly.utils.JdkVersion getJdkVersion();
descriptor: ()Lorg/glassfish/grizzly/utils/JdkVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.utils.JdkVersion.JDK_VERSION:Lorg/glassfish/grizzly/utils/JdkVersion;
areturn
LocalVariableTable:
Start End Slot Name Signature
public int getMajor();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.major:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/JdkVersion;
public int getMinor();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.minor:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/JdkVersion;
public int getMaintenance();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.maintenance:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/JdkVersion;
public int getUpdate();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.update:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/JdkVersion;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
ldc "JdkVersion"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
ldc "{major="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.major:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
3: aload 1
ldc ", minor="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.minor:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
4: aload 1
ldc ", maintenance="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.maintenance:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
5: aload 1
ldc ", update="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.update:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
6: aload 1
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/utils/JdkVersion;
1 8 1 sb Ljava/lang/StringBuilder;
public int compareTo(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.glassfish.grizzly.utils.JdkVersion.parseVersion:(Ljava/lang/String;)Lorg/glassfish/grizzly/utils/JdkVersion;
invokevirtual org.glassfish.grizzly.utils.JdkVersion.compareTo:(Lorg/glassfish/grizzly/utils/JdkVersion;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/JdkVersion;
0 1 1 versionString Ljava/lang/String;
MethodParameters:
Name Flags
versionString
public int compareTo(org.glassfish.grizzly.utils.JdkVersion);
descriptor: (Lorg/glassfish/grizzly/utils/JdkVersion;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.major:I
aload 1
getfield org.glassfish.grizzly.utils.JdkVersion.major:I
if_icmpge 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.major:I
aload 1
getfield org.glassfish.grizzly.utils.JdkVersion.major:I
if_icmple 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.minor:I
aload 1
getfield org.glassfish.grizzly.utils.JdkVersion.minor:I
if_icmpge 6
5: iconst_m1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.minor:I
aload 1
getfield org.glassfish.grizzly.utils.JdkVersion.minor:I
if_icmple 8
7: iconst_1
ireturn
8: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.maintenance:I
aload 1
getfield org.glassfish.grizzly.utils.JdkVersion.maintenance:I
if_icmpge 10
9: iconst_m1
ireturn
10: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.maintenance:I
aload 1
getfield org.glassfish.grizzly.utils.JdkVersion.maintenance:I
if_icmple 12
11: iconst_1
ireturn
12: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.update:I
aload 1
getfield org.glassfish.grizzly.utils.JdkVersion.update:I
if_icmpge 14
13: iconst_m1
ireturn
14: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.JdkVersion.update:I
aload 1
getfield org.glassfish.grizzly.utils.JdkVersion.update:I
if_icmple 16
15: iconst_1
ireturn
16: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/glassfish/grizzly/utils/JdkVersion;
0 17 1 otherVersion Lorg/glassfish/grizzly/utils/JdkVersion;
MethodParameters:
Name Flags
otherVersion
private static int parseInt(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s final
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.glassfish.grizzly.utils.JdkVersion
invokevirtual org.glassfish.grizzly.utils.JdkVersion.compareTo:(Lorg/glassfish/grizzly/utils/JdkVersion;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Lorg/glassfish/grizzly/utils/JdkVersion;>;
SourceFile: "JdkVersion.java"