Details
-
Type:
Defect
-
Status:
Closed
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: Backlog
-
Component/s: None
-
Labels:None
Description
From the google group:
The following correctly throws an IllegalArgumentException "More than one matching method" due to the nil resulting in ambiguity between two overloaded version of append.
(let [sb (StringBuilder.)] (.append sb nil))</code></pre>And yet the following, which uses reflection, works: <pre><code>(def s nil) (let [sb (StringBuilder.)] (.append sb s))
Converted from http://www.assembla.com/spaces/clojure/tickets/466