The gen-class function supports generation of getter/setter functions for protected fields of the super class, but as currently implemented it does not support exposing protected fields declared further up the class hierarchy.
The attached patch adds a private find-field function to genclass.clj which will search the hierarchy for a protected field by name and provide gen-class with the information it needs to generate bytecode. Exposing find-field, and similar functions for working with classes, should be considered as it would prevent others from replicating functionality in user code. -Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
genclass_find-field.patch
Description: Binary data