Created
April 23, 2011 04:14
-
-
Save lahwran/938271 to your computer and use it in GitHub Desktop.
Smart compiler is smart
This file contains 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
//eclipse compiled and jd-gui decompiled | |
public class asdf | |
{ | |
public static final int x = 10; | |
public int z = 3; | |
public asdf() { | |
int y = 11; //YES!!! | |
this.z += y; | |
} | |
} |
This file contains 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
//original | |
public class asdf | |
{ | |
public static final int x = 10; | |
public int z=3; | |
public asdf() | |
{ | |
int y = x+1; | |
z+=y; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment