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

+11 votes
in REPL by

Per Slack chat:

The {{-Dclojure.compile.warn-on-reflection=true}} property only affects the Compile wrapper. A "regular" property should be added that affects * } when running {{clojure.main}}.

Alex said:

"It might make more sense to leverage the existing compiler-options infrastructure instead for that."

2 Answers

+3 votes
Reference: https://clojure.atlassian.net/browse/CLJ-2328 (reported by seancorfield)
0 votes

As a temporary workaround:


(alter-var-root #'*warn-on-reflection* (constantly true))

in user.clj also seems to work.