这些警告经常出现在我的日常工作中,有一点不便。
Reflection warning, clojure/tools/trace.clj:231:54 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:242:56 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:244:49 - call to java.lang.Exception ctor can't be resolved.
Reflection warning, clojure/tools/trace.clj:244:69 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:256:56 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:259:49 - call to java.lang.Throwable ctor can't be resolved.
Reflection warning, clojure/tools/trace.clj:259:69 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:275:56 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:276:68 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
在 master 分支中查看 tools.trace 代码,这些问题似乎是可以解决的。
这些反射警告能否避免?