Skip to content
Advertisement

Tag: clojure-java-interop

How do I pass a class to new indirectly in clojure

I have a clojure class (a namespace with a (:gen-class) clause). I then need to pass a constructed object to a java function. this works However, if I need to refer to the class indirectly, that runs into some problems because new does not evaluate its argument. I am able to get the desired result by using While this works

Advertisement