Fork me on GitHub
#clojure-dev
<
2019-02-06
>
gfredericks00:02:03

is it possible to remove reflection when using proxy? I'm not sure how to type-hint this, or why it would need it anyhow:

(proxy [java.io.PushbackReader] [(java.io.StringReader. "")] (read [] (proxy-super read)))
;; Reflection warning, *cider-repl localhost*:878:100 - reference to field read can't be resolved.

hiredman01:02:17

(let [^java.io.Reader this this] (proxy-super read))

hiredman01:02:28

or something like that, if I recall

gfredericks01:02:56

yep that does it