jss: GET-JAVA-FIELD now finds non-public inherited fields with TRY-HARDER.
Robert Goldman contributes in <http://abcl.org/trac/ticket/362>: GET-JAVA-FIELD, when its optional TRY-HARDER argument is NIL, will return any public field on its argument object, whether defined locally or inherited. When TRY-HARDER argument is true, on the other hand, it will return non-public fields as well as public ones but only non-public fields that are defined locally -- not non-public fields that are inherited. This non-orthogonality seems wrong (just read the contorted description above and imagine it as a docstring!). I am attaching a proposed patch which searches up the class hierarchy to find inherited non-public fields when TRY-HARDER is true.
Showing with 22 additions and 4 deletions