Permalink
Browse files

Fixed invocation of setter to properly call to-java

  • Loading branch information...
1 parent 65523d5 commit 4657c4a1aef4d11810acb584b01c6a629eb57f87 @cosmin committed Sep 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/clojure/offbytwo/beanhelpers.clj
View
2 src/main/clojure/offbytwo/beanhelpers.clj
@@ -21,7 +21,7 @@
(defn- make-setter-fn [method]
(fn [instance value]
- (.invoke method instance (into-array [(to-java value (get-setter-type method))]))))
+ (.invoke method instance (into-array [(to-java (get-setter-type method) value)]))))
(defn- add-getter-fn [the-map prop-descriptor]
(let [name (.getName prop-descriptor)

0 comments on commit 4657c4a

Please sign in to comment.