Hi,

I'm using CCW to compile Clojure to java classes.

I have to compile a static class method call like this:

(MyClass/myMethod arg1 ...)


To compile this the compiler needs to load the MyClass class. The problem 
is that in my case some classes can only be loaded in the running 
application. So the compilation fails.

My current work-around is:

(clojure.lang.Reflector/invokeStaticMethod
"full.name.of.MyClass"
"myMethod"
(object-array [arg1 ...]))


Does anyone knows more elegant solution?

Regards,
Vladimir

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

Reply via email to