Banning java reflection in coding
Posted on 2013-05-24
In my project, I am disallowing code entries to use reflection on other objects to steal data.
Is it possible to see in a split second if this cheating has occurred?
If one class extends a class, if I make all the data I want to conceal, private / protected from children. Reflection can be used to discern this data? But, Must I just disallow anything that starts "import java.lang.reflect." ? Then private and protected will be enforced in the parent class?
Is reflection the only way to steal data members from other objects in the JVM?