Has anyone tried to invoke overloaded methods on a hessian proxy?  

My hessian interface has two overloaded methods.    

*public Set<Changes> getChanges(Session session)*;
public Set<Changes> getChanges(String session);


I couldn't manage to call  *getChanges(Session session).*

user> (set! *warn-on-reflection* true)

true

user> (.getChanges ^com.ChangesService  @changes-service ^com.Session s)   
 ;;  No reflection warning.

*IllegalArgumentException java.lang.ClassCastException@caec54 
 sun.reflect.GeneratedMethodAccessor185.invoke (:-1)*

user>  (class  @changes-service)
com.sun.proxy.$Proxy2


user> (.getChanges @changes-service s)

Reflection warning, NO_SOURCE_PATH:1:1 - call to getChanges can't be 
resolved.
IllegalArgumentException java.lang.ClassCastException@b95837 
 sun.reflect.GeneratedMethodAccessor185.invoke (:-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.

Reply via email to