Welcome! Please see the About page for a little more info on how this works.

0 votes
in tools.analyzer by

The following code will throw an exception:

(ana.jvm/analyze '(reify
                    java.io.Closeable
                    (close [_])
                    example.foo/EventClient
                    (close [_])))
                    ;; => clojure.lang.ExceptionInfo: Ambiguous method signature for method: close

...where example.foo/EventClient is a a real, resolvable defprotocol that does in fact define a close [_] method.

Here is a reproducible patch that can be applied over https://github.com/clojure/tools.analyzer.jvm/commit/f00d92317307c3e9e326fd99d337292925dc9db1 :

https://gist.githubusercontent.com/vemv/ae450c380ac96683bc06275323e7e322/raw/91ad4b60502b32f4f57bd0d5707bcf51740f8e7b/gistfile1.patch

Please log in or register to answer this question.

...