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

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.

Environment

None

Attachments

2

Activity

Show:

chouser August 17, 2012 at 4:26 AM

Patch still applies, tests still pass.

chouser November 19, 2011 at 10:13 PM

Updated patch to apply cleanly to Clojure 1.4 SNAPSHOT. Included tests look good and pass.

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code and Test

Priority

Affects versions

Fix versions

Created February 25, 2011 at 7:48 PM
Updated August 18, 2012 at 1:50 PM
Resolved August 18, 2012 at 1:50 PM