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
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
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
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
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
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