Skip to content

Instantly share code, notes, and snippets.

@retronym
Created June 18, 2018 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retronym/47efe13f6aedf84daa5696a562711724 to your computer and use it in GitHub Desktop.
Save retronym/47efe13f6aedf84daa5696a562711724 to your computer and use it in GitHub Desktop.
public class $line5.$read$$iw$$iw$Test {
public static java.lang.reflect.Method reflMethod$Method1(java.lang.Class);
Code:
0: invokedynamic #34, 0 // InvokeDynamic #0:apply:()Lscala/runtime/StructuralCallSite;
5: astore_1
6: aload_1
7: aload_0
8: invokevirtual #37 // Method scala/runtime/StructuralCallSite.find:(Ljava/lang/Class;)Ljava/lang/reflect/Method;
11: astore_2
12: aload_2
13: ifnull 18
16: aload_2
17: areturn
18: getstatic #43 // Field scala/runtime/ScalaRunTime$.MODULE$:Lscala/runtime/ScalaRunTime$;
21: aload_0
22: ldc #45 // String close
24: aload_1
25: invokevirtual #49 // Method scala/runtime/StructuralCallSite.parameterTypes:()[Ljava/lang/Class;
28: invokevirtual #55 // Method java/lang/Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
31: invokevirtual #59 // Method scala/runtime/ScalaRunTime$.ensureAccessible:(Ljava/lang/reflect/Method;)Ljava/lang/reflect/Method;
34: astore_2
35: aload_1
36: aload_0
37: aload_2
38: invokevirtual #63 // Method scala/runtime/StructuralCallSite.add:(Ljava/lang/Class;Ljava/lang/reflect/Method;)Ljava/lang/reflect/Method;
41: pop
42: aload_2
43: areturn
public void foo(java.lang.Object);
Code:
0: aload_1
1: astore_2
2: aload_2
3: invokevirtual #79 // Method java/lang/Object.getClass:()Ljava/lang/Class;
6: invokestatic #81 // Method reflMethod$Method1:(Ljava/lang/Class;)Ljava/lang/reflect/Method;
9: aload_2
10: iconst_0
11: anewarray #4 // class java/lang/Object
14: invokevirtual #85 // Method java/lang/reflect/Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
17: goto 26
20: astore_3
21: aload_3
22: invokevirtual #89 // Method java/lang/reflect/InvocationTargetException.getCause:()Ljava/lang/Throwable;
25: athrow
26: pop
27: getstatic #95 // Field scala/runtime/BoxedUnit.UNIT:Lscala/runtime/BoxedUnit;
30: pop
31: return
Exception table:
from to target type
2 17 20 Class java/lang/reflect/InvocationTargetException
public $line5.$read$$iw$$iw$Test();
Code:
0: aload_0
1: invokespecial #105 // Method java/lang/Object."<init>":()V
4: return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment