public class org.jruby.util.log.LoggerFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.log.LoggerFactory
super_class: java.lang.Object
{
static final java.lang.String LOGGER_CLASS;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.String BACKUP_LOGGER_CLASS;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "org.jruby.util.log.StandardErrorLogger"
static final java.lang.reflect.Constructor<? extends org.jruby.util.log.Logger> LOGGER;
descriptor: Ljava/lang/reflect/Constructor;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
static final java.lang.reflect.Constructor<? extends org.jruby.util.log.Logger> LOGGER_OLD;
descriptor: Ljava/lang/reflect/Constructor;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: getstatic org.jruby.util.cli.Options.LOGGER_CLASS:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
checkcast java.lang.String
putstatic org.jruby.util.log.LoggerFactory.LOGGER_CLASS:Ljava/lang/String;
1: getstatic org.jruby.util.log.LoggerFactory.LOGGER_CLASS:Ljava/lang/String;
ldc Ljava/lang/Class;
iconst_1
invokestatic org.jruby.util.log.LoggerFactory.resolveLoggerConstructor:(Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/reflect/Constructor;
putstatic org.jruby.util.log.LoggerFactory.LOGGER:Ljava/lang/reflect/Constructor;
2: getstatic org.jruby.util.log.LoggerFactory.LOGGER:Ljava/lang/reflect/Constructor;
ifnonnull 5
3: getstatic org.jruby.util.log.LoggerFactory.LOGGER_CLASS:Ljava/lang/String;
ldc Ljava/lang/String;
iconst_0
invokestatic org.jruby.util.log.LoggerFactory.resolveLoggerConstructor:(Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/reflect/Constructor;
putstatic org.jruby.util.log.LoggerFactory.LOGGER_OLD:Ljava/lang/reflect/Constructor;
4: goto 6
5: StackMap locals:
StackMap stack:
getstatic org.jruby.util.log.LoggerFactory.LOGGER_CLASS:Ljava/lang/String;
ldc Ljava/lang/String;
iconst_1
invokestatic org.jruby.util.log.LoggerFactory.resolveLoggerConstructor:(Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/reflect/Constructor;
putstatic org.jruby.util.log.LoggerFactory.LOGGER_OLD:Ljava/lang/reflect/Constructor;
6: StackMap locals:
StackMap stack:
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 Lorg/jruby/util/log/LoggerFactory;
static java.lang.reflect.Constructor<? extends org.jruby.util.log.Logger> resolveLoggerConstructor(java.lang.String, java.lang.Class<?>, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/reflect/Constructor;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc Ljava/lang/String;
if_acmpne 2
1: ldc Lorg/jruby/util/log/LoggerFactory;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
goto 3
StackMap locals:
StackMap stack:
2: ldc Lorg/jruby/util/log/LoggerFactory;
3: StackMap locals:
StackMap stack: java.io.Serializable
astore 4
start local 4 4: aload 0
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 5
start local 5 5: aload 5
iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 1
aastore
invokevirtual java.lang.Class.getDeclaredConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
astore 3
start local 3 6: aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 7: goto 18
end local 3 8: StackMap locals: java.lang.String java.lang.Class int top java.lang.Object
StackMap stack: java.lang.Exception
astore 5
start local 5 9: iload 2
ifeq 11
aload 5
instanceof java.lang.NoSuchMethodException
ifeq 11
10: aconst_null
areturn
11: StackMap locals: java.lang.Exception
StackMap stack:
ldc "org.jruby.util.log.StandardErrorLogger"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 6
start local 6 12: aload 6
iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 1
aastore
invokevirtual java.lang.Class.getDeclaredConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
astore 3
start local 3 13: aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.util.log.Logger
astore 7
start local 7 14: aload 7
new java.lang.StringBuilder
dup
ldc "failed to create logger \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\", using \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "org.jruby.util.log.StandardErrorLogger"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokeinterface org.jruby.util.log.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 7 end local 6 15: goto 18
end local 3 16: StackMap locals:
StackMap stack: java.lang.Exception
pop
17: new java.lang.IllegalStateException
dup
ldc "unable to instantiate any logger"
aload 5
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 start local 3 18: StackMap locals: java.lang.String java.lang.Class int java.lang.reflect.Constructor java.lang.Object
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 className Ljava/lang/String;
0 19 1 paramType Ljava/lang/Class<*>;
0 19 2 allowNoSuchMethod Z
6 8 3 loggerCtor Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
13 16 3 loggerCtor Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
18 19 3 loggerCtor Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
4 19 4 param Ljava/lang/Object;
5 7 5 klass Ljava/lang/Class<+Lorg/jruby/util/log/Logger;>;
9 18 5 ex Ljava/lang/Exception;
12 15 6 klass Ljava/lang/Class<+Lorg/jruby/util/log/Logger;>;
14 15 7 log Lorg/jruby/util/log/Logger;
Exception table:
from to target type
4 7 8 Class java.lang.Exception
11 15 16 Class java.lang.Exception
Signature: (Ljava/lang/String;Ljava/lang/Class<*>;Z)Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
MethodParameters:
Name Flags
className final
paramType final
allowNoSuchMethod
public static org.jruby.util.log.Logger getLogger(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lorg/jruby/util/log/Logger;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic org.jruby.util.log.LoggerFactory.LOGGER:Ljava/lang/reflect/Constructor;
ifnonnull 2
1: aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic org.jruby.util.log.LoggerFactory.getLogger:(Ljava/lang/String;)Lorg/jruby/util/log/Logger;
areturn
2: StackMap locals:
StackMap stack:
getstatic org.jruby.util.log.LoggerFactory.LOGGER:Ljava/lang/reflect/Constructor;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.util.log.Logger
3: areturn
4: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 5: aload 0
aload 1
invokestatic org.jruby.util.log.LoggerFactory.getLoggerFallback:(Ljava/lang/Class;Ljava/lang/Exception;)Lorg/jruby/util/log/Logger;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 loggerClass Ljava/lang/Class<*>;
5 6 1 ex Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
Signature: (Ljava/lang/Class<*>;)Lorg/jruby/util/log/Logger;
MethodParameters:
Name Flags
loggerClass
public static org.jruby.util.log.Logger getLogger(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jruby/util/log/Logger;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic org.jruby.util.log.LoggerFactory.LOGGER_OLD:Ljava/lang/reflect/Constructor;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.util.log.Logger
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: aload 0
aload 1
invokestatic org.jruby.util.log.LoggerFactory.getLoggerFallback:(Ljava/lang/String;Ljava/lang/Exception;)Lorg/jruby/util/log/Logger;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 loggerName Ljava/lang/String;
3 4 1 ex Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
loggerName
private static org.jruby.util.log.Logger getLoggerFallback(java.lang.String, java.lang.Exception);
descriptor: (Ljava/lang/String;Ljava/lang/Exception;)Lorg/jruby/util/log/Logger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
astore 2
start local 2 1: goto 3
2: StackMap locals: java.lang.Throwable
StackMap stack:
aload 2
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 2
3: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
ifnonnull 2
4: aload 2
instanceof java.lang.SecurityException
ifeq 6
5: new org.jruby.util.log.StandardErrorLogger
dup
aload 0
invokespecial org.jruby.util.log.StandardErrorLogger.<init>:(Ljava/lang/String;)V
areturn
6: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "unable to instantiate logger"
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 loggerName Ljava/lang/String;
0 7 1 ex Ljava/lang/Exception;
1 7 2 rootCause Ljava/lang/Throwable;
MethodParameters:
Name Flags
loggerName final
ex final
private static org.jruby.util.log.Logger getLoggerFallback(java.lang.Class, java.lang.Exception);
descriptor: (Ljava/lang/Class;Ljava/lang/Exception;)Lorg/jruby/util/log/Logger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
astore 2
start local 2 1: goto 3
2: StackMap locals: java.lang.Throwable
StackMap stack:
aload 2
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 2
3: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
ifnonnull 2
4: aload 2
instanceof java.lang.SecurityException
ifeq 6
5: new org.jruby.util.log.StandardErrorLogger
dup
aload 0
invokespecial org.jruby.util.log.StandardErrorLogger.<init>:(Ljava/lang/Class;)V
areturn
6: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "unable to instantiate logger"
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 loggerClass Ljava/lang/Class;
0 7 1 ex Ljava/lang/Exception;
1 7 2 rootCause Ljava/lang/Throwable;
MethodParameters:
Name Flags
loggerClass final
ex final
}
SourceFile: "LoggerFactory.java"