Welcome! Please see the About page for a little more info on how this works.

0 votes
in data.xml by

The latest-on-Maven (0.2.0-alpha6) clojure.data.xml incurs reflection warnings.

$ 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\"}}}"

There have been some updates in git, but they have not altered jvm/name.clj, so the issue might still be current.

1 Answer

0 votes
by

Not an answer, but I have confirmed the issue is still present on the latest master:

(! 505)-> pwd
/Developer/clojure/data.xml
(! 506)-> clj -Sdeps '{:paths ["src/main/clojure"]}'
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=>
...