Skip to content

Commit

Permalink
Fix class init issue under clojure 1.7.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias committed Jan 12, 2015
1 parent 4a9f7e2 commit 5da81c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/immutant/internal/options.clj
Expand Up @@ -69,6 +69,9 @@
(defn ^java.util.Map opts->map
"Converts an Option class into a map of name -> Option instance."
[class]
;; clojure 1.7.0 no longer initializes classes on import, so we have
;; to force init here (see CLJ-1315)
(Class/forName (.getName class))
(->> class
Option/optsFor
(map (fn [^Option o] (vector (.name o) o)))
Expand Down

0 comments on commit 5da81c0

Please sign in to comment.