Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
java.lang.Class.getDeclaredFields() doesn't return the fields defined by the super classes. I'd like to suggest the addition of a new method in FieldUtils that also returns the inherited fields (including the private fields).
According to this question on StackOverflow this method would be quite useful:
http://stackoverflow.com/questions/3567372/access-to-private-inherited-fields-via-reflection-in-java