Re: clojure.lang.Reflector.invokeMatchingMethod and type hints within macros

2010-01-12 Thread jpraher
after some more debugging, the issue seems more subtle: the method that has declaringClass target.getClass is apparantly of signature (Lcom/sun/jdi/ReferenceType)V; Though both are methods of interface MethodEntryRequest: http://java.sun.com/javase/6/docs/jdk/api/jpda/jdi/com/sun/jdi/request/Metho

Re: clojure.lang.Reflector.invokeMatchingMethod and type hints within macros

2010-01-12 Thread jpraher
I looked into the code and found the following Problem with this particiular code (com.sun.jdi) implementation: I think the problem stems from within Reflector.java's invokeMatchingMethod with signature (String methodName, List methods, Object target, Object[] args) : (1) target.getClass() == Eve

clojure.lang.Reflector.invokeMatchingMethod and type hints within macros

2010-01-11 Thread jpraher
Hi all, first of all kudos to clojure. Especially the clojure-swank in combination with leinigen is a nice environment to work with. Now to my problem: I am playing with JDI to intercept events of an attached JVM via clojure. Since there are a lot of siblings eventrequest subinterfaces, which can

Re: -> and type hints

2009-04-29 Thread Christophe Grand
Christophe Grand a écrit : > Bad example: > (-> "hello world" (.split " ") #^String second (.split "o") seq) ; > actually works > but not: > (-> "hello world" (.split " ") #^String (second) (.split "o") seq) ; > works only with the patched -> > Or I should put up and write (-> "hello w

Re: -> and type hints

2009-04-29 Thread Christophe Grand
Bad example: (-> "hello world" (.split " ") #^String second (.split "o") seq) ; actually works but not: (-> "hello world" (.split " ") #^String (second) (.split "o") seq) ; works only with the patched -> Christophe Grand a écrit : > Hello, > > Currently when you have a reflection warning in

-> and type hints

2009-04-29 Thread Christophe Grand
Hello, Currently when you have a reflection warning in a -> form, you have to split it: clojure.core=> (-> "hello world" (.split " ") second (.split "o") seq) Reflection warning, line: 1269 - call to split can't be resolved. ("w" "rld") I propose to modify the -> macro to make it preserve typ