Fork me on GitHub

@borkdude, just curious, for your test.check random issue, is using native-image’s --initialize-at-run-time option for the generated class also a possibility?


@lee Good call. I did try that, but it didn't work:

$ $GRAALVM_HOME/bin/native-image foo --no-fallback --no-server --report-unsupported-elements-at-runtime "--initialize-at-run-time=clojure.test.check.random" --initialize-at-build-time -cp $(clojure -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.10.2-alpha1"}} :paths ["classes"]}' -Spath)
Error: Classes that should be initialized at run time got initialized during image building:
 clojure.test.check.random.JavaUtilSplittableRandom the class was requested to be initialized at run time (from the command line). To see why clojure.test.check.random.JavaUtilSplittableRandom got initialized use -H:+TraceClassInitialization