<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged :excess</title>
<link>https://ask.clojure.org/index.php/tag/%3Aexcess</link>
<description>Powered by Question2Answer</description>
<item>
<title>:excess throws on a java.util.Map</title>
<link>https://ask.clojure.org/index.php/15276/excess-throws-on-a-java-util-map</link>
<description>&lt;pre&gt;&lt;code&gt;(def m (java.util.HashMap. {:a 1 :b 2}))

(def select-a (selector {:keys [a] :select s}))
(def excess-a (selector {:keys [a] :excess e}))

(select-a m)
;; =&amp;gt; {:a 1}

(excess-a m)
;; =&amp;gt; ClassCastException: class java.util.HashMap cannot be cast to class clojure.lang.IPersistentMap
;; Expected `{:b 2}`.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Reproduced on Clojure 1.13.0-alpha10.&lt;/p&gt;
</description>
<category>Clojure</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/15276/excess-throws-on-a-java-util-map</guid>
<pubDate>Mon, 26 Oct 2026 09:18:11 +0000</pubDate>
</item>
</channel>
</rss>