Fork me on GitHub
#graalvm
<
2021-05-17
>
borkdude13:05:44

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?

borkdude13:05:57

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

borkdude07:05:05

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

borkdude15:05:00

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