[PJUG Javamail] reflecting Private memebers

Bill Jackson bill.jackson at oracle.com
Fri Sep 28 17:39:22 UTC 2007


Whoops, that should have been get/Declared/Fields.

Bill Jackson wrote:
> Basically, you just need to get a reference to the Field object (e.g. 
> via Class.getFields()), then call field.setAccessible(true).
>
>
> Brian Mason wrote:
>> I know it is possible to reflect private members but I cannot figure 
>> it out.
>> Anyone have any experience with this???
>>
>> Thanks,
>> Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://javac.com/pipermail/javamail/attachments/20070928/7e43798e/attachment-0002.html>


More information about the Javamail mailing list