Details
-
Type:
Defect
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.2
-
Component/s: None
-
Labels:None
Description
With commit 1b8d50, running past a defmulti twice (e.g., reloading),
causes the metadata to get squashed:
(defmulti add
"Add item to the accumulator acc. The exact meaning of adding an
an item depends on the type of the accumulator.")
(defmulti add
"Add item to the accumulator acc. The exact meaning of adding an
an item depends on the type of the accumulator.")
(doc add)
yields =>
-------------------------
user/add
nil
nil
To standard out. I assume that this is because of the def on line
1191:
`(let v# (def ~mm-name)
(when-not (and (.hasRoot v#) (instance? clojure.lang.MultiFn
(deref v#)))
(def ~(with-meta mm-name m)
(new clojure.lang.MultiFn ~(name mm-name) ~dispatch-fn
~default ~hierarchy)))))))
This is mucking up the autodoc stuff.
Converted from http://www.assembla.com/spaces/clojure/tickets/309
Attachments:
defmulti-fix.diff - https://www.assembla.com/spaces/clojure/documents/a24DeetD4r34ureJe5dVir/download/a24DeetD4r34ureJe5dVir