Is this any better? user=> (defn f [^java.awt.image.BufferedImage bi x] (.setData (.getRaster bi) 0 0 0 ^double x)) #'user/f
On Wednesday, May 23, 2012 4:58:27 PM UTC-7, Cedric Greevey wrote: > > (defn f [^java.awt.image.BufferedImage bi x] > (.setSample (.getRaster bi) 0 0 0 (double x))) > #<CompilerException java.lang.IllegalArgumentException: More than one > matching method found: setSample, compiling:(NO_SOURCE_PATH:1)> > > The only way I was able to find to fix this is > > (defn f [^java.awt.image.BufferedImage bi] > (.setSample (.getRaster bi) 0 0 0 ^Double (double x))) > > which presumably forces x to be boxed and unboxed again. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en