Johannes said:
Hi,
Is there a possibility to reflect protected fields?
Sure. Reflection uses access control as intended, so that you can use
reflection for package and protected members within the current package
as well.
If the field is inaccessible normally, see the setAccessible method in
AccessibleObject (which is a base class for Field, Method, and
Constructor). It lets you bypass access control. This is subject to a
check by the SecurityManager to prevent untrusted code from using this
feature to circumvent security checking.
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation