class org.jruby.RubyClass$3 implements org.jruby.runtime.ObjectAllocator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.RubyClass$3
super_class: java.lang.Object
{
final org.jruby.RubyClass this$0;
descriptor: Lorg/jruby/RubyClass;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final java.lang.Class val$cls;
descriptor: Ljava/lang/Class;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(org.jruby.RubyClass, java.lang.Class);
descriptor: (Lorg/jruby/RubyClass;Ljava/lang/Class;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 // org.jruby.RubyClass$3 this
0: .line 149
aload 0 /* this */
aload 1
putfield org.jruby.RubyClass$3.this$0:Lorg/jruby/RubyClass;
aload 0 /* this */
aload 2
putfield org.jruby.RubyClass$3.val$cls:Ljava/lang/Class;
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.jruby.RubyClass$3 this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyClass$3;
MethodParameters:
Name Flags
this$0 final
val$cls final
public org.jruby.runtime.builtin.IRubyObject allocate(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 // org.jruby.RubyClass$3 this
start local 1 // org.jruby.Ruby runtime
start local 2 // org.jruby.RubyClass klazz
0: .line 152
aload 0 /* this */
getfield org.jruby.RubyClass$3.val$cls:Ljava/lang/Class;
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast org.jruby.RubyBasicObject
astore 3 /* object */
start local 3 // org.jruby.RubyBasicObject object
1: .line 153
aload 3 /* object */
aload 2 /* klazz */
invokevirtual org.jruby.RubyBasicObject.setMetaClass:(Lorg/jruby/RubyClass;)V
2: .line 154
aload 3 /* object */
3: areturn
end local 3 // org.jruby.RubyBasicObject object
4: .line 155
StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 3 /* ie */
start local 3 // java.lang.InstantiationException ie
5: .line 156
aload 1 /* runtime */
new java.lang.StringBuilder
dup
ldc "could not allocate "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0 /* this */
getfield org.jruby.RubyClass$3.val$cls:Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " with default constructor:\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3 /* ie */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 // java.lang.InstantiationException ie
6: .line 157
StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 3 /* iae */
start local 3 // java.lang.IllegalAccessException iae
7: .line 158
aload 1 /* runtime */
new java.lang.StringBuilder
dup
ldc "could not allocate "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0 /* this */
getfield org.jruby.RubyClass$3.val$cls:Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " due to inaccessible default constructor:\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3 /* iae */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newSecurityError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 // java.lang.IllegalAccessException iae
end local 2 // org.jruby.RubyClass klazz
end local 1 // org.jruby.Ruby runtime
end local 0 // org.jruby.RubyClass$3 this
LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/RubyClass$3;
0 8 1 runtime Lorg/jruby/Ruby;
0 8 2 klazz Lorg/jruby/RubyClass;
1 4 3 object Lorg/jruby/RubyBasicObject;
5 6 3 ie Ljava/lang/InstantiationException;
7 8 3 iae Ljava/lang/IllegalAccessException;
Exception table:
from to target type
0 3 4 Class java.lang.InstantiationException
0 3 6 Class java.lang.IllegalAccessException
MethodParameters:
Name Flags
runtime
klazz
}
SourceFile: "RubyClass.java"
EnclosingMethod: org.jruby.RubyClass.setClassAllocator:(Ljava/lang/Class;)V
NestHost: org.jruby.RubyClass
InnerClasses:
org.jruby.RubyClass$3