Reflection warning in catch

1 view
Skip to first unread message

David Powell

unread,
Aug 2, 2008, 6:41:16 AM8/2/08
to clo...@googlegroups.com
I notice that the code:

(try
[...]
(catch IOException e)
(.printStackTrace e)
)

causes a reflection warning on .printStackTrace? Would it be possible
for the compiler to infer that e is an IOException?

--
Dave

Rich Hickey

unread,
Aug 4, 2008, 9:17:35 AM8/4/08
to Clojure
It would, and now it does.

Thanks for the suggestion,

Rich
Reply all
Reply to author
Forward
0 new messages