A quick test to see if this is the issue; you should see this: user> (meta ^:foo []) {:tag :foo}
(from lein swank on my system), not this: user=> (meta ^:foo []) nil (from lein repl on my system). On Oct 4, 11:50 pm, Jason Wolfe <jawo...@berkeley.edu> wrote: > Are you using "lein repl"? If so, I suspect that may be your issue; > at least on some systems, it seems to currently lose type hints: > > http://groups.google.com/group/clojure/browse_thread/thread/41fd58c62... > > -Jason > > On Oct 4, 11:05 pm, Sean Corfield <seancorfi...@gmail.com> wrote: > > > On Mon, Oct 4, 2010 at 5:27 PM, ataggart <alex.tagg...@gmail.com> wrote: > > > Not sure, but I suspect 'lein deps' doesn't kill your local maven > > > cache, so you might not actually be getting the latest jar off the > > > server. cake has a 'cake deps force' precisely to deal with this > > > issue. > > > I nuked my maven repo and ran lein deps to get the latest. I got the > > same as lein deps before I nuked the maven repo. So it does provide > > the latest Clojure JARs. > > > Even with the latest: > > > clojure-1.3.0-master-20101004.160206-13.jar > > standalone-1.3.0-20101004.160607-5.jar > > > I still get reflection warnings: > > > (set! *warn-on-reflection* true) > > ; true > > (defn asum-sq [ ^floats xs] > > (let [^floats dbl (amap xs i ret > > (* (aget xs i) > > (aget xs i)))] > > (areduce dbl i ret 0 > > (+ ret (aget dbl i))))) > > Reflection warning, NO_SOURCE_PATH:2 - call to aclone can't be resolved. > > Reflection warning, NO_SOURCE_PATH:2 - call to alength can't be resolved. > > Reflection warning, NO_SOURCE_PATH:2 - call to aget can't be resolved. > > Reflection warning, NO_SOURCE_PATH:2 - call to aget can't be resolved. > > Reflection warning, NO_SOURCE_PATH:2 - call to aset can't be resolved. > > Reflection warning, NO_SOURCE_PATH:2 - call to alength can't be resolved. > > Reflection warning, NO_SOURCE_PATH:2 - call to aget can't be resolved. > > NO_SOURCE_FILE:2 recur arg for primitive local: ret is not matching > > primitive, had: Object, needed: long > > Auto-boxing loop arg: ret > > Reflection warning, NO_SOURCE_PATH:2 - call to alength can't be resolved. > > Reflection warning, NO_SOURCE_PATH:2 - call to aget can't be resolved. > > #'user/asum-sq > > > Happy to debug this further if folks can give me some pointers... > > -- > > Sean A Corfield -- (904) 302-SEAN > > Railo Technologies, Inc. --http://getrailo.com/ > > An Architect's View --http://corfield.org/ > > > "If you're not annoying somebody, you're not really alive." > > -- Margaret Atwood -- 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