Details
-
Type:
Defect
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.2
-
Component/s: None
-
Labels:None
-
Approval:Ok
Description
A function name with a dash in the :methods list isn't properly munged when using compile/gen-class. This results in a method in the byte code that is not callable from Java.
Offending code:
(ns foo.bar
(:gen-class
:methods [[foo-bar [] void]]))
(defn -foo-bar [] (println "a"))
Converted from http://www.assembla.com/spaces/clojure/tickets/407
Attachments:
0407-no-hyphens-in-genclass-method-names.patch - https://www.assembla.com/spaces/clojure/documents/by19VCMomr360aeJe5cbCb/download/by19VCMomr360aeJe5cbCb
0407-prevent-bad-genclass-methods-with-munge.patch - https://www.assembla.com/spaces/clojure/documents/cje20uM0Cr35VBeJe5cbLA/download/cje20uM0Cr35VBeJe5cbLA