mardi 18 avril 2017

How a particular field is filtered from reflection access?

Class.java How Java restrict reflection access to the field private final ClassLoader classLoader in Class.java? (As shown in documentation in screenshot)

I have found a link which describes that a SecurityManager can be used to restrict reflection access but how can I use that. Please explain in detail.

And after that I want to restrict access only to a particular field.





Aucun commentaire:

Enregistrer un commentaire