This is an existing bug:
http://dev.clojure.org/jira/browse/CLJ-978?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel

It's relatively easy to write a workaround if needed.

On Tue, Oct 4, 2016 at 7:59 AM Divyansh Prakash <divyanshprakas...@gmail.com>
wrote:

> Is this desired behaviour?
>
> user=> (bean [])
> {:class clojure.lang.PersistentVector, :empty true}
>
> user=> (bean {})
> {:class clojure.lang.PersistentArrayMap, :empty true}
>
> user=> (bean ())
> IllegalAccessException Class clojure.core$bean$fn__5975$fn__5976 can not
> access a member of class clojure.lang.PersistentList$EmptyList with
> modifiers "public"  sun.reflect.Reflection.ensureMemberAccess
> (Reflection.java:110)
>
> user=> (bean '(1 2 3))
> {:class clojure.lang.PersistentList, :empty false}
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to