public final class org.apache.cassandra.utils.JavaUtils
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.utils.JavaUtils
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/utils/JavaUtils;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.utils.JavaUtils.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public static boolean supportExitOnOutOfMemory(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokestatic org.apache.cassandra.utils.JavaUtils.parseJavaVersion:(Ljava/lang/String;)I
istore 1
start local 1 1: iload 1
bipush 8
if_icmple 3
2: iconst_1
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
invokestatic org.apache.cassandra.utils.JavaUtils.parseUpdateForPre9Versions:(Ljava/lang/String;)I
istore 2
start local 2 4: iload 1
bipush 7
if_icmpne 5
iload 2
bipush 101
if_icmpge 7
StackMap locals: int
StackMap stack:
5: iload 1
bipush 8
if_icmpne 6
iload 2
bipush 92
if_icmpge 7
StackMap locals:
StackMap stack:
6: iconst_0
ireturn
StackMap locals:
StackMap stack:
7: iconst_1
8: ireturn
end local 2 end local 1 9: StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
astore 1
start local 1 10: getstatic org.apache.cassandra.utils.JavaUtils.logger:Lorg/slf4j/Logger;
new java.lang.StringBuilder
dup
ldc "Some JRE information could not be retrieved for the JRE 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
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
11: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 jreVersion Ljava/lang/String;
1 9 1 version I
4 9 2 update I
10 12 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 9 Class java.lang.Exception
3 8 9 Class java.lang.Exception
MethodParameters:
Name Flags
jreVersion
private static int parseJavaVersion(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
ldc "1."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
1: aload 0
iconst_2
iconst_3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
start local 1 2: goto 9
end local 1 3: StackMap locals:
StackMap stack:
aload 0
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 4: iload 2
ifge 8
5: aload 0
bipush 45
invokevirtual java.lang.String.indexOf:(I)I
istore 2
6: iload 2
ifge 8
7: aload 0
invokevirtual java.lang.String.length:()I
istore 2
8: StackMap locals: java.lang.String top int
StackMap stack:
aload 0
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
end local 2 start local 1 9: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 1
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 jreVersion Ljava/lang/String;
2 3 1 version Ljava/lang/String;
9 10 1 version Ljava/lang/String;
4 9 2 index I
MethodParameters:
Name Flags
jreVersion
private static int parseUpdateForPre9Versions(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
bipush 45
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 1: iload 1
ifle 3
2: aload 0
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
3: StackMap locals: int
StackMap stack:
aload 0
bipush 95
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 4: iload 2
ifge 6
5: iconst_0
ireturn
6: StackMap locals: int
StackMap stack:
aload 0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 jreVersion Ljava/lang/String;
1 7 1 dashSeparatorIndex I
4 7 2 updateSeparatorIndex I
MethodParameters:
Name Flags
jreVersion
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/utils/JavaUtils;
}
SourceFile: "JavaUtils.java"