Skip to content

Commit 640b3cd

Browse files
committed
use into in gen-class to avoid duplicate key error
1 parent 1b8d500 commit 640b3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clj/clojure/genclass.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@
589589

590590
[& options]
591591
(when *compile-files*
592-
(let [options-map (apply hash-map options)
592+
(let [options-map (into {} (map vec (partition 2 options)))
593593
[cname bytecode] (generate-class options-map)]
594594
(clojure.lang.Compiler/writeClassFile cname bytecode))))
595595

0 commit comments

Comments
 (0)