Maven(0.2.0-alpha6)的最新版本 clojure.data.xml 引发了反射警告。
$ clj
Clojure 1.10.1
user=> (set! *warn-on-reflection* true)
true
user=> (require '[clojure.data.xml :as dx])
Reflection warning, clojure/data/xml/jvm/name.clj:35:1 - call to static method decode on java.net.URLDecoder can't be resolved (argument types: unknown, java.lang.String).
Reflection warning, clojure/data/xml/jvm/name.clj:38:1 - call to static method encode on java.net.URLEncoder can't be resolved (argument types: unknown, java.lang.String).
nil
user=> (slurp "deps.edn")
"{:deps\n {org.clojure/data.xml {:mvn/version \"0.2.0-alpha6\"}}}"
在git中有些更新,但它们并没有修改 jvm/name.clj
,所以这个问题可能仍然有效。