Created
September 26, 2018 10:14
-
-
Save artem-smotrakov/717ff420953f6a112fe1900ef156a2aa to your computer and use it in GitHub Desktop.
Nested classes and accessing private fields in Java, see also https://blog.gypsyengineer.com/en/security/accessing-private-fields-with-synthetic-methods-in-java.html
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
public class A { | |
private int secret; | |
public class B { | |
public go() { | |
// do something | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment