Skip to content

Instantly share code, notes, and snippets.

@jsyeo
Created August 17, 2015 11:10
Show Gist options
  • Select an option

  • Save jsyeo/cdc67a462cb5cf971e53 to your computer and use it in GitHub Desktop.

Select an option

Save jsyeo/cdc67a462cb5cf971e53 to your computer and use it in GitHub Desktop.
Rapid Type Analysis Example
public class Main {
public static void main(String[] args) {
A a = new C();
a.m();
}
}
class A {
void m() {
}
}
class B extends A {
void m() {
System.out.println("I am vulnerable");
}
}
class C extends A {
void m() {
System.out.println("I am harmless");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment