Fork me on GitHub

While trying to run with "not all classes initialized at build time" which is what GraalVM recommends nowadays, I think:

$GRAALVM_HOME/bin/native-image --no-server --no-fallback --initialize-at-build-time=clojure --initialize-at-build-time=clojure.core.server__init -H:+ReportExceptionStackTraces -cp classes:$(clojure -Spath) mymain
Caused by: java.lang.IllegalStateException: Can't change/establish root binding of: *warn-on-reflection* with set

馃憤 3
Karol W贸jcik13:05:44

Do you use warn-on-reflection somewhere?


This is from clojure.core.server

Karol W贸jcik07:05:44

I have seen your workaround for this problem. Wondering if it could be included in Clojure itself


Rather not, it's quite a hack for a niche problem


I wonder if there is some sort of hack possible, like first force some thread-bindings for those vars