public abstract class org.jruby.javasupport.ext.JavaUtil
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jruby.javasupport.ext.JavaUtil
super_class: java.lang.Object
{
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/javasupport/ext/JavaUtil;
public static void define(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc Ljava/util/Enumeration;
aload 0
invokedynamic accept(Lorg/jruby/Ruby;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/jruby/javasupport/ext/JavaUtil.lambda$0(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)V (6)
(Lorg/jruby/RubyModule;)V
invokestatic org.jruby.javasupport.ext.JavaExtensions.put:(Lorg/jruby/Ruby;Ljava/lang/Class;Ljava/util/function/Consumer;)V
1: aload 0
ldc Ljava/util/Iterator;
aload 0
invokedynamic accept(Lorg/jruby/Ruby;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/jruby/javasupport/ext/JavaUtil.lambda$1(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)V (6)
(Lorg/jruby/RubyModule;)V
invokestatic org.jruby.javasupport.ext.JavaExtensions.put:(Lorg/jruby/Ruby;Ljava/lang/Class;Ljava/util/function/Consumer;)V
2: aload 0
ldc Ljava/util/Collection;
aload 0
invokedynamic accept(Lorg/jruby/Ruby;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/jruby/javasupport/ext/JavaUtil.lambda$2(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)V (6)
(Lorg/jruby/RubyModule;)V
invokestatic org.jruby.javasupport.ext.JavaExtensions.put:(Lorg/jruby/Ruby;Ljava/lang/Class;Ljava/util/function/Consumer;)V
3: aload 0
ldc Ljava/util/List;
aload 0
invokedynamic accept(Lorg/jruby/Ruby;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/jruby/javasupport/ext/JavaUtil.lambda$3(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)V (6)
(Lorg/jruby/RubyModule;)V
invokestatic org.jruby.javasupport.ext.JavaExtensions.put:(Lorg/jruby/Ruby;Ljava/lang/Class;Ljava/util/function/Consumer;)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 runtime Lorg/jruby/Ruby;
MethodParameters:
Name Flags
runtime final
private static java.util.Collection tryNewEqualInstance(java.util.Collection);
descriptor: (Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: aload 1
invokevirtual java.lang.Class.getDeclaredConstructors:()[Ljava/lang/reflect/Constructor;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 10
StackMap locals: java.util.Collection java.lang.Class java.lang.reflect.Constructor top int int java.lang.reflect.Constructor[]
StackMap stack:
3: aload 6
iload 4
aaload
astore 3
start local 3 4: aload 3
invokevirtual java.lang.reflect.Constructor.getParameterTypes:()[Ljava/lang/Class;
astore 7
start local 7 5: aload 7
arraylength
iconst_1
if_icmpne 9
aload 7
iconst_0
aaload
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 9
6: aload 2
ifnonnull 7
aload 3
astore 2
goto 9
7: StackMap locals: java.util.Collection java.lang.Class java.lang.reflect.Constructor java.lang.reflect.Constructor int int java.lang.reflect.Constructor[] java.lang.Class[]
StackMap stack:
aload 2
invokevirtual java.lang.reflect.Constructor.getParameterTypes:()[Ljava/lang/Class;
iconst_0
aaload
aload 7
iconst_0
aaload
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 9
8: aload 3
astore 2
end local 7 end local 3 9: StackMap locals: java.util.Collection java.lang.Class java.lang.reflect.Constructor top int int java.lang.reflect.Constructor[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
iload 5
if_icmplt 3
11: aload 2
ifnull 20
12: getstatic org.jruby.RubyInstanceConfig.SET_ACCESSIBLE:Z
ifeq 13
aload 2
invokestatic org.jruby.javasupport.Java.trySetAccessible:(Ljava/lang/reflect/AccessibleObject;)Z
pop
13: StackMap locals: java.util.Collection java.lang.Class java.lang.reflect.Constructor
StackMap stack:
aload 2
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 java.util.Collection
14: areturn
end local 2 15: StackMap locals: java.util.Collection java.lang.Class
StackMap stack: java.lang.IllegalAccessException
pop
goto 20
16: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 2
start local 2 17: aload 2
invokestatic org.jruby.runtime.Helpers.throwException:(Ljava/lang/Throwable;)V
aconst_null
areturn
end local 2 18: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 2
start local 2 19: aload 2
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
invokestatic org.jruby.runtime.Helpers.throwException:(Ljava/lang/Throwable;)V
aconst_null
areturn
end local 2 20: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast java.util.Collection
astore 2
start local 2 21: goto 26
end local 2 22: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
pop
23: aload 0
areturn
24: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 3
start local 3 25: aload 3
invokestatic org.jruby.runtime.Helpers.throwException:(Ljava/lang/Throwable;)V
aconst_null
areturn
end local 3 start local 2 26: StackMap locals: java.util.Collection
StackMap stack:
aload 2
aload 0
invokeinterface java.util.Collection.addAll:(Ljava/util/Collection;)Z
pop
27: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 coll Ljava/util/Collection;
1 28 1 klass Ljava/lang/Class<+Ljava/util/Collection;>;
2 15 2 best Ljava/lang/reflect/Constructor;
4 9 3 ctor Ljava/lang/reflect/Constructor;
5 9 7 params [Ljava/lang/Class;
17 18 2 e Ljava/lang/InstantiationException;
19 20 2 e Ljava/lang/reflect/InvocationTargetException;
21 22 2 clone Ljava/util/Collection;
26 28 2 clone Ljava/util/Collection;
25 26 3 e Ljava/lang/InstantiationException;
Exception table:
from to target type
1 14 15 Class java.lang.IllegalAccessException
1 14 16 Class java.lang.InstantiationException
1 14 18 Class java.lang.reflect.InvocationTargetException
20 21 22 Class java.lang.IllegalAccessException
20 21 24 Class java.lang.InstantiationException
MethodParameters:
Name Flags
coll final
private static void lambda$0(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokestatic org.jruby.javasupport.ext.JavaUtil$Enumeration.define:(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyModule;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 proxyClass Lorg/jruby/RubyModule;
private static void lambda$1(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokestatic org.jruby.javasupport.ext.JavaUtil$Iterator.define:(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyModule;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 proxyClass Lorg/jruby/RubyModule;
private static void lambda$2(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokestatic org.jruby.javasupport.ext.JavaUtil$Collection.define:(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyModule;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 proxyClass Lorg/jruby/RubyModule;
private static void lambda$3(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokestatic org.jruby.javasupport.ext.JavaUtil$List.define:(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyModule;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 proxyClass Lorg/jruby/RubyModule;
}
SourceFile: "JavaUtil.java"
NestMembers:
org.jruby.javasupport.ext.JavaUtil$Collection org.jruby.javasupport.ext.JavaUtil$Enumeration org.jruby.javasupport.ext.JavaUtil$Iterator org.jruby.javasupport.ext.JavaUtil$List org.jruby.javasupport.ext.JavaUtil$List$BlockComparator org.jruby.javasupport.ext.JavaUtil$List$SpaceshipComparator
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Collection = org.jruby.javasupport.ext.JavaUtil$Collection of org.jruby.javasupport.ext.JavaUtil
public Enumeration = org.jruby.javasupport.ext.JavaUtil$Enumeration of org.jruby.javasupport.ext.JavaUtil
public Iterator = org.jruby.javasupport.ext.JavaUtil$Iterator of org.jruby.javasupport.ext.JavaUtil
public List = org.jruby.javasupport.ext.JavaUtil$List of org.jruby.javasupport.ext.JavaUtil