hey guys. i am struggling to understand how to avoid reflection when calling a clojure method from java. i tried type hinting "this" in the function definition, and that works assuming a version of the class exists already, but if I do a clean compilation I get a java.lang.ClassNotFoundException.
an approximation of the code is at http://pastebin.com/FpTyRNTS, also pasted below: (gen-class :name com.company.Aclass :prefix rad- :extends org.eclipse.jetty.util.component.AbstractLifeCycle :state state :init init :constructors {[java.util.Map] []} :methods [[getStuff [] java.util.List]] ) (defn ^java.util.List rad-getStuff [^Aclass this] (do @(.state this) )) thanks in advance! Ilya p.s. i am using clojure 1.5.1 -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.