Get all my free tips & tutorials! Connect with me, or sign up for my news letter or RSS feed , and get all my tips that help you become a more skilled and efficient developer. Newsletter Despite the common belief it is actually possible to access private fields and methods of other classes via Java Reflection. It is not even that difficult. This can be very handy during unit testing. This text will show you how. Note: This only works when running the code as a standalone Java application, like you do with unit tests and regular applications. If you try to do this inside a Java Applet,
Read full article from Java Reflection - Private Fields and Methods
No comments:
Post a Comment