Skip to content

Instantly share code, notes, and snippets.

@chanwit
Created June 22, 2009 20:24
Show Gist options
  • Save chanwit/134165 to your computer and use it in GitHub Desktop.
Save chanwit/134165 to your computer and use it in GitHub Desktop.
// class version 51.0 (51)
// access flags 33
public class Klosure {
// compiled from: Klosure.java
// access flags 25
public final static INNERCLASS MethodHandles$Lookup MethodHandles Lookup
// access flags 26
private final static MethodHandle mh_closure1
// access flags 1
public <init>() : void
L0
LINENUMBER 12 L0
ALOAD 0: this
INVOKESPECIAL Object.<init>() : void
RETURN
L1
LOCALVARIABLE this Klosure L0 L1 0
MAXSTACK = 1
MAXLOCALS = 1
// access flags 26
private final static _closure1(Object) : Object
L0
LINENUMBER 18 L0
ACONST_NULL
CHECKCAST Object
ALOAD 0: it
INVOKEDYNAMIC Dynamic.println(Object,Object) : Object
POP
L1
LINENUMBER 19 L1
ACONST_NULL
ARETURN
L2
LOCALVARIABLE it Object L0 L2 0
MAXSTACK = 2
MAXLOCALS = 1
// access flags 9
public static main(String[]) : void
L0
LINENUMBER 26 L0
ICONST_5
INVOKESTATIC Integer.valueOf(int) : Integer
NEW Closure
DUP
GETSTATIC Klosure.mh_closure1 : MethodHandle
INVOKESPECIAL Closure.<init>(MethodHandle) : void
INVOKEDYNAMIC Dynamic.times(Object,Object) : Object
POP
L1
LINENUMBER 27 L1
RETURN
L2
LOCALVARIABLE args String[] L0 L2 0
MAXSTACK = 4
MAXLOCALS = 1
// access flags 8
static <clinit>() : void
L0
LINENUMBER 14 L0
INVOKESTATIC MethodHandles.lookup() : MethodHandles$Lookup
LDC Lg7/tests/classgen/skeleton/Klosure;.class
LDC "_closure1"
LDC Ljava/lang/Object;.class
LDC Ljava/lang/Object;.class
INVOKESTATIC MethodType.make(Class,Class) : MethodType
INVOKEVIRTUAL MethodHandles$Lookup.findStatic(Class,String,MethodType) : MethodHandle
PUTSTATIC Klosure.mh_closure1 : MethodHandle
L1
LINENUMBER 30 L1
LDC Lg7/tests/classgen/skeleton/Klosure;.class
INVOKESTATIC G7Bootstrap.registerBootstrap(Class) : void
L2
LINENUMBER 31 L2
RETURN
MAXSTACK = 5
MAXLOCALS = 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment