Re: Accessing Private Fields
You may consider the method getDeclaredFields() in the class java.lang.Class. It return the fields
in the specified class. I adopt some words in the document :
Returns an array of Field objects reflecting all the fields declared by the class or interface
represented by this Class object. This includes public, protected, default (package) access,
and private fields, but excludes inherited fields.
So I guess that you might have to cast the base class to the subclass and get the field in the subclass.
I never try it. This is just the suggestion.
good luck,
Alfred Wu