Fix proxy exception
This commit is contained in:
parent
7262e1e709
commit
c79d48cdde
1 changed files with 3 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
(defn method-or-bust [methods k]
|
(defn method-or-bust [methods k]
|
||||||
(or (get methods k)
|
(or (get methods k)
|
||||||
(throw (UnsupportedOperationException. "Method not implemented: " k))))
|
(throw (UnsupportedOperationException. (str "Method not implemented: " k)))))
|
||||||
|
|
||||||
(defn class-name [^Class clazz]
|
(defn class-name [^Class clazz]
|
||||||
(.getName clazz))
|
(.getName clazz))
|
||||||
|
|
@ -27,7 +27,8 @@
|
||||||
(containsKey [k] ((method-or-bust methods 'containsKey) this k))
|
(containsKey [k] ((method-or-bust methods 'containsKey) this k))
|
||||||
(entryAt [k] ((method-or-bust methods 'entryAt) this k))
|
(entryAt [k] ((method-or-bust methods 'entryAt) this k))
|
||||||
(valAt
|
(valAt
|
||||||
([k] ((method-or-bust methods 'valAt) this k))
|
([k]
|
||||||
|
((method-or-bust methods 'valAt) this k))
|
||||||
([k default] ((method-or-bust methods 'valAt) this k default)))
|
([k default] ((method-or-bust methods 'valAt) this k default)))
|
||||||
(cons [v]
|
(cons [v]
|
||||||
(if-let [m (get methods 'cons)]
|
(if-let [m (get methods 'cons)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue