Fork me on GitHub
#java
<
2020-09-03
>
nick18:09:41

First time not very trivial Clojure-java interop Would it be easier to just use some modern IDE for Java just for navigating the Java dependencies? Currently I'm using this as a workaround, not sure if there is a better/simpler solution. Getting to those nested calls is a bit tricky

(map (comp keyword :name) (:members (clojure.reflect/reflect my-interop-java-obj)))
(:getEndpoint
 :com.twilio.type.PhoneNumber
 :equals
 :rawNumber
 :hashCode
 :toString
 :encode)

Alex Miller (Clojure team)18:09:52

I use Cursive, which has great Java interop and find it essential when using complicated Java apis

nick19:09:35

Thank you Alex! That's good to know Unfortunately I use emacs & cider, jump-from-clj-to-java-source doesn't seem to be working here. I'll ask in the #cider channel later, just to make sure