Skip to content
  • mevenson@1c010e3e-69d0-11dd-93a8-456734b0d56f's avatar
    jss: GET-JAVA-FIELD now finds non-public inherited fields with TRY-HARDER. · 2f4ad123
    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.
    2f4ad123