Hello,

   I'm attempting to use some java classes in clojure, where I need
the clojure to be AOT compiled.  I'm running into trouble with
accessing final methods in the superclass of genclass.  Some code:

--------------= Hello.java =------------
package com.example;
public class Hello {
    public void hello() {
        System.err.println("Hello, World!");
    }

    protected final void yo() {
        System.err.println("Yo, World!");
    }
}

--------------= HelloWorld.clj =----------
(ns com.example.HelloWorld
  (:gen-class
   :extends com.example.Hello
   :methods [[go [] void]]
   :exposes-methods {yo yoSuper}))

(defn -go [this]
  (.yoSuper this))

--------------------------------------------

In this case I cannot access the "protected final void yo()" in the
Hello class with the clojure code.  Now I'm not trying to override the
method myself, but is the :exposes-methods doing so under the hood ?
If so how do I get around this ?

Thanks for your help,

   Edmund

-- 
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