This is working fine from Clojure. I don't see how you can get help without providing some information about the code you have that isn't working.
user> (definterface Printable (print [])) user.Printable user> (definterface User (use [^user.Printable p])) user.User user> (def p (reify Printable (print [this] (println "q")))) #'user/p user> (def u (reify User (use [this other] (.print other)))) #'user/u user> (.use u p) q nil user> (.use u 'a) Cannot cast clojure.lang.Symbol to user.Printable On Sep 14, 10:04 am, JonnyB <stoned-jo...@gmx.net> wrote: > I try to spare you all the details. > > I want to call a java function: > foo (String str, BarInterface bar) > with an argument bar of class Bar that implements BarInterface. > > The call works fine from Java. But Clojure throws a > ClassCastException. > > I never met an error like this and have no idea where to start > debugging here. > As a first starting point: > could this be something generally not working in clojure? > > Thank you a lot in advance, > JonnyB -- 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