Created
August 17, 2015 11:10
-
-
Save jsyeo/cdc67a462cb5cf971e53 to your computer and use it in GitHub Desktop.
Rapid Type Analysis Example
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 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