Issue is in bean, not walk. walk calls (empty foo) on its collection,
in order to make sure you get back a collection of the same type. bean
maps are, I guess, some special type rather than an ordinary
c.l.PersistentHashMap; and that type doesn't implement the full
IPersistentCollection contract (ie, there's no implementation of
empty).

On Dec 13, 9:07 am, Jay Fields <j...@jayfields.com> wrote:
> I think I found a bug
>
> user=> (bean "hi")
> {:empty false, :class java.lang.String, :bytes #<byte[] [B@6d7f11fb>}
> user=> (clojure.walk/stringify-keys (bean "hi"))
> AbstractMethodError
> clojure.lang.APersistentMap.empty()Lclojure/lang/IPersistentCollection;
>  clojure.core.proxy$clojure.lang.APersistentMap$0.empty (:-1)
>
> Cheers, Jay

-- 
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

Reply via email to