weavejester / hashp

A better "prn" for debugging
MIT License
439 stars 23 forks source link

hashp doesn't work with JDK 11 by default #3

Closed jumarko closed 4 years ago

jumarko commented 4 years ago

When running in my project I get this error:

Syntax error (IllegalArgumentException) compiling deftype* at (clojure/core/rrb_vector/rrbt.clj:282:1).
Must hint overloaded method: toArray

The obsolete dependency is coming from here: [hashp "0.1.0"] -> [mvxcvi/puget "1.2.0"] -> [fipp "0.6.21"] -> [org.clojure/core.rrb-vector "0.1.0"]

This has been fixed in later rrb-vector releases, see https://www.deps.co/blog/how-to-upgrade-clojure-projects-to-use-java-11#java-util-collection-toarray

The suggested approach is probably to exclude the obsolete rrb-vector and include the new version:

                 [hashp "0.1.0"
                  ;; exclude old rrb vector to make it work with JDK 11: https://www.deps.co/blog/how-to-upgrade-clojure-projects-to-use-java-11#java-util-collection-toarray
                  :exclusions [org.clojure/core.rrb-vector]
                  [org.clojure/core.rrb-vector "0.0.13"]