I am writing clojure code calls java's method which parameters and return are HashMap.
When I call java method with clojure's Map, the following error occurred.
java.lang.ClassCastException: clojure.lang.PersistentArrayMap cannot be cast to java.util.HashMap
So, I'd like to convert nested clojure.lang.PersistentArrayMap into java.util.HashMap
and nested HashMap into PersistentArrayMap.
Clojure's map is like {:a 1 :b {:c 1 :d 2} :e {:f 10 :g 11}}.
Is there the efficient way to convert type between Clojure's map and java's map ?
Thanks,
Makoto