Hello there, Iv been trying to implement a proxy on a class ( http://code.google.com/p/javaparser/source/browse/trunk/JavaParser/src/japa/parser/ast/visitor/VoidVisitorAdapter.java?spec=svn77&r=77) that has multiple overloaded methods (same arity different types), trying
(defn create-visitor [] (proxy [VoidVisitorAdapter] [] (visit [method, arg] (println method)) (visit [exp, arg] (println type)))) This results with compilation error Caused by: java.lang.IllegalArgumentException: Method 'visit' redefined. Type hints didn't help either: (defn create-visitor [] (proxy [VoidVisitorAdapter] [] (visit [#^MethodDeclaration method, arg] (println method)) (visit [#^AssignExpr exp, arg] (println type)))) Any ideas? Thanx --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---