On Tue, Sep 15, 2009 at 2:08 PM, Sir Diddymus <sirdidd...@googlemail.com> wrote:
>
> Dear all,
>
> I've successfully extended a Java class (:gen-class and :extends) and
> all is working as expected, until I was forced to call a protected
> final method of the superclass from within my derived class. I don't
> seem find a way to do this (:exposes-methods really is only for
> overridden methods?) - is it even possible?

I created a standalone example that demonstrates the
problem:

        http://paste.lisp.org/display/87106#1

I think it comes down to gen-class's non-private-methods
function which is used both for auto-generated stub methods
and for the list of methods :exposes-methods will accept.
It specifically excludes final methods, which makes perfect
sense for auto-generated stubs, but perhaps not for
:exposes-methods.

Would it be worth using a slightly different definition of
"non-private" for :exposes-methods to support this use case?

--Chouser

--~--~---------~--~----~------------~-------~--~----~
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to