final class jdk.management.jfr.MBeanUtils
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.management.jfr.MBeanUtils
super_class: java.lang.Object
{
private static final java.security.Permission monitor;
descriptor: Ljava/security/Permission;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.security.Permission control;
descriptor: Ljava/security/Permission;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.management.ManagementPermission
dup
ldc "monitor"
invokespecial java.lang.management.ManagementPermission.<init>:(Ljava/lang/String;)V
putstatic jdk.management.jfr.MBeanUtils.monitor:Ljava/security/Permission;
1: new java.lang.management.ManagementPermission
dup
ldc "control"
invokespecial java.lang.management.ManagementPermission.<init>:(Ljava/lang/String;)V
putstatic jdk.management.jfr.MBeanUtils.control:Ljava/security/Permission;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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/management/jfr/MBeanUtils;
static javax.management.ObjectName createObjectName();
descriptor: ()Ljavax/management/ObjectName;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: new javax.management.ObjectName
dup
ldc "jdk.management.jfr:type=FlightRecorder"
invokespecial javax.management.ObjectName.<init>:(Ljava/lang/String;)V
1: areturn
2: StackMap locals:
StackMap stack: javax.management.MalformedObjectNameException
astore 0
start local 0 3: new java.lang.Error
dup
ldc "Can't happen"
aload 0
invokespecial java.lang.Error.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
3 4 0 mne Ljavax/management/MalformedObjectNameException;
Exception table:
from to target type
0 1 2 Class javax.management.MalformedObjectNameException
static void checkControl();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
getstatic jdk.management.jfr.MBeanUtils.control:Ljava/security/Permission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 secManager Ljava/lang/SecurityManager;
static void checkMonitor();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
getstatic jdk.management.jfr.MBeanUtils.monitor:Ljava/security/Permission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 secManager Ljava/lang/SecurityManager;
static <T, R> java.util.List<R> transformList(java.util.List<T>, java.util.function.Function<T, R>);
descriptor: (Ljava/util/List;Ljava/util/function/Function;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
aload 1
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 source Ljava/util/List<TT;>;
0 1 1 function Ljava/util/function/Function<TT;TR;>;
Signature: <T:Ljava/lang/Object;R:Ljava/lang/Object;>(Ljava/util/List<TT;>;Ljava/util/function/Function<TT;TR;>;)Ljava/util/List<TR;>;
MethodParameters:
Name Flags
source
function
static boolean booleanValue(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: ldc "true"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
ldc "false"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Value must be true or false."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
static java.time.Duration duration(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/time/Duration;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.jfr.internal.management.ManagementSupport.parseTimespan:(Ljava/lang/String;)J
lstore 1
start local 1 3: lload 1
lconst_0
lcmp
ifne 5
4: aconst_null
areturn
5: StackMap locals: long
StackMap stack:
lload 1
invokestatic java.time.Duration.ofNanos:(J)Ljava/time/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 s Ljava/lang/String;
3 6 1 l J
Exceptions:
throws java.lang.NumberFormatException
MethodParameters:
Name Flags
s
public static java.time.Instant parseTimestamp(java.lang.String, java.time.Instant);
descriptor: (Ljava/lang/String;Ljava/time/Instant;)Ljava/time/Instant;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic java.time.Instant.parse:(Ljava/lang/CharSequence;)Ljava/time/Instant;
3: areturn
4: StackMap locals:
StackMap stack: java.time.format.DateTimeParseException
pop
5: aload 0
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
invokestatic java.time.Instant.ofEpochMilli:(J)Ljava/time/Instant;
6: areturn
7: StackMap locals:
StackMap stack: java.lang.RuntimeException
pop
8: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Not a valid timestamp "
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;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 s Ljava/lang/String;
0 9 1 defaultValue Ljava/time/Instant;
Exception table:
from to target type
2 3 4 Class java.time.format.DateTimeParseException
5 6 7 Class java.lang.NumberFormatException
5 6 7 Class java.time.DateTimeException
MethodParameters:
Name Flags
s
defaultValue
static java.lang.Long size(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lstore 1
start local 1 1: lload 1
lconst_0
lcmp
ifge 3
2: new java.lang.IllegalArgumentException
dup
ldc "Negative size not allowed"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: long
StackMap stack:
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 s Ljava/lang/String;
1 4 1 size J
Exceptions:
throws java.lang.NumberFormatException
MethodParameters:
Name Flags
s
public static int parseBlockSize(java.lang.String, int);
descriptor: (Ljava/lang/String;I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: iload 1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 2
start local 2 3: iload 2
iconst_1
if_icmpge 5
4: new java.lang.IllegalArgumentException
dup
ldc "Block size must be at least 1 byte"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 string Ljava/lang/String;
0 6 1 defaultSize I
3 6 2 size I
MethodParameters:
Name Flags
string
defaultSize
public static java.lang.String destination(jdk.jfr.Recording, java.lang.String);
descriptor: (Ljdk/jfr/Recording;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.jfr.internal.management.ManagementSupport.checkSetDestination:(Ljdk/jfr/Recording;Ljava/lang/String;)V
1: aload 1
2: areturn
3: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 4: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Not a valid destination "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
astore 3
start local 3 5: aload 3
aload 2
invokevirtual java.lang.IllegalArgumentException.addSuppressed:(Ljava/lang/Throwable;)V
6: aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 recording Ljdk/jfr/Recording;
0 7 1 destination Ljava/lang/String;
4 7 2 e Ljava/io/IOException;
5 7 3 iae Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
0 2 3 Class java.io.IOException
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
recording
destination
}
SourceFile: "MBeanUtils.java"