Skip to content

Instantly share code, notes, and snippets.

@draftcode
Created November 7, 2011 15:35
Show Gist options
  • Select an option

  • Save draftcode/1345291 to your computer and use it in GitHub Desktop.

Select an option

Save draftcode/1345291 to your computer and use it in GitHub Desktop.
.class public A
.super java/lang/Object
.method static method()F
fconst_1
freturn
.end method
.method static method()I
iconst_1
ireturn
.end method
class B {
public static void main(String []args) {
// This results changes which method will occur in A.class
java.lang.System.out.println(A.method()); // 1 or 1.0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment