summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/proxy.clj7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/proxy.clj b/src/proxy.clj
index d9aceffb..c49cbdf0 100644
--- a/src/proxy.clj
+++ b/src/proxy.clj
@@ -175,9 +175,10 @@
;add methods matching interfaces', if no mapping -> throw
(doseq #^Class iface interfaces
(doseq #^java.lang.reflect.Method meth (. iface (getMethods))
- (gen-method meth
- (fn [gen m]
- (. gen (throwException ex-type (. m (getName)))))))))
+ (when-not (contains? mm [(. meth (getName)) (seq (. meth (getParameterTypes)))])
+ (gen-method meth
+ (fn [gen m]
+ (. gen (throwException ex-type (. m (getName))))))))))
;finish class def
(. cv (visitEnd))