12/20 I'm trying to use Java reflection to find all fields in the current
or inherited classes which have public setter methods. getField
inspects inherited classes but gives only public fields.
getDeclaredField gives all scope fields, but only not in inherited
fields. Anyone know a good way to inspect inherited protected fields?
\_ Use getDeclaredFields and walk up the class hierarchy yourself
to get all the fields.
\_ That's what I was afraid of. -op
\_ On second thought, there's a good reason why it's like this,
you might have multiple levels of inheritance declaring
different fields with the same name. -op |