[Armedbear-ticket] [armedbear] #362: GET-JAVA-FIELD doesn't behave orthogonally when TRY-HARDER is T

armedbear armedbear-devel at common-lisp.net
Fri Jul 25 21:26:53 UTC 2014


#362: GET-JAVA-FIELD doesn't behave orthogonally when TRY-HARDER is T
----------------------------+-----------------
 Reporter:  robert goldman  |      Owner:
     Type:  defect          |     Status:  new
 Priority:  major           |  Milestone:
Component:  JSS             |    Version:
 Keywords:                  |
----------------------------+-----------------
 `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.

--
Ticket URL: <http://abcl.org/trac/ticket/362>
armedbear <http://abcl.org>
armedbear


More information about the armedbear-ticket mailing list