Skip to content

Instantly share code, notes, and snippets.

@arturaz
Created December 3, 2012 18:10
Show Gist options
  • Save arturaz/4196795 to your computer and use it in GitHub Desktop.
Save arturaz/4196795 to your computer and use it in GitHub Desktop.
arturas@zeus:~/work/traveltime-api/vendor/igeolise-lib$ javap -c Foo.class
Compiled from "test.scala"
public class Foo implements scala.ScalaObject {
public int x();
Code:
0: aload_0
1: getfield #11 // Field x:I
4: ireturn
public void x_$eq(int);
Code:
0: aload_0
1: iload_1
2: putfield #11 // Field x:I
5: return
public Foo(int);
Code:
0: aload_0
1: iload_1
2: putfield #11 // Field x:I
5: aload_0
6: invokespecial #19 // Method java/lang/Object."<init>":()V
9: return
}
arturas@zeus:~/work/traveltime-api/vendor/igeolise-lib$ cat test.scala
class Foo(var x: Int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment