Uploaded image for project: 'Clojure'
  1. CLJ-745

gen-class should allow exposes-methods to expose protected final methods

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Affects versions: Release 1.2
    • Fix versions: Release 1.5
    • Labels:
      None
    • Approval:
      Ok
    • Patch:
      Code and Test

      Description

      Currently, there is no way in Clojure to call a protected final method of a superclass. While this may be an acceptable limitation for proxy, gen-class should provide that ability. Otherwise, one is now forced to create a dummy subclass in Java for the sole purpose of widening the visibility of such methods.

      My patch makes it so that protected final methods may be exposed via the :exposes-methods mechanism. It is still impossible to override them.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dsg Daniel Solano Gómez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: