Created
July 27, 2012 20:56
-
-
Save kiritsuku/3190447 to your computer and use it in GitHub Desktop.
javap output of compiled java file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MM { | |
| public void meth(final scala.Function1<Object, scala.runtime.BoxedUnit> f) { | |
| } | |
| } | |
| /* | |
| % javap -c -s -l -verbose -private MM | |
| Compiled from "MM.java" | |
| public class MM extends java.lang.Object | |
| SourceFile: "MM.java" | |
| minor version: 0 | |
| major version: 50 | |
| Constant pool: | |
| const #1 = Method #3.#14; // java/lang/Object."<init>":()V | |
| const #2 = class #15; // MM | |
| const #3 = class #16; // java/lang/Object | |
| const #4 = Asciz <init>; | |
| const #5 = Asciz ()V; | |
| const #6 = Asciz Code; | |
| const #7 = Asciz LineNumberTable; | |
| const #8 = Asciz meth; | |
| const #9 = Asciz (Lscala/Function1;)V; | |
| const #10 = Asciz Signature; | |
| const #11 = Asciz (Lscala/Function1<Ljava/lang/Object;Lscala/runtime/BoxedUnit;>;)V; | |
| const #12 = Asciz SourceFile; | |
| const #13 = Asciz MM.java; | |
| const #14 = NameAndType #4:#5;// "<init>":()V | |
| const #15 = Asciz MM; | |
| const #16 = Asciz java/lang/Object; | |
| { | |
| public MM(); | |
| Signature: ()V | |
| LineNumberTable: | |
| line 1: 0 | |
| Code: | |
| Stack=1, Locals=1, Args_size=1 | |
| 0: aload_0 | |
| 1: invokespecial #1; //Method java/lang/Object."<init>":()V | |
| 4: return | |
| LineNumberTable: | |
| line 1: 0 | |
| public void meth(scala.Function1); | |
| Signature: (Lscala/Function1;)V | |
| LineNumberTable: | |
| line 4: 0 | |
| Code: | |
| Stack=0, Locals=2, Args_size=2 | |
| 0: return | |
| LineNumberTable: | |
| line 4: 0 | |
| Signature: length = 0x2 | |
| 00 0B | |
| } | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment