Skip to content

Instantly share code, notes, and snippets.

@sprsquish
Created September 28, 2011 05:49

Revisions

  1. sprsquish created this gist Sep 28, 2011.
    16 changes: 16 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    public void usingByteValue();
    Code:
    0: getstatic #52; //Field scala/Predef$.MODULE$:Lscala/Predef$;
    3: ldc2_w #108; //long 56l
    6: invokevirtual #113; //Method scala/Predef$.long2Long:(J)Ljava/lang/Long;
    9: invokevirtual #119; //Method java/lang/Long.byteValue:()B
    12: pop
    13: return

    public void usingToByte();
    Code:
    0: ldc2_w #108; //long 56l
    3: l2i
    4: i2b
    5: pop
    6: return