graalvm

borkdude 2025-09-11T13:45:06.806479Z

A heads up for anyone using GraalVM with Clojure. Run GraalVM 25 EA or 26 (very easy to just download or install with sdkman). Try running your native-image build with --future-defaults=all and see if your build still works. This will enable future defaults that will be included with GraalVM 26 where they will force some JDK classes to be initialized at run time. Babashka's build broke, but it was pretty easy to fix, namely I had to do this:

(defonce ^FileSystem FS (FileSystems/getDefault)) -> (defonce ^FileSystem FS (delay (FileSystems/getDefault)))

borkdude 2025-09-11T13:45:22.302209Z

cc @ericdallo @lee

borkdude 2025-09-11T13:53:51.763739Z

I notice the type hint is wrong, I'll fix that

ericdallo 2025-09-11T13:57:13.592179Z

ah here we go again :)

ericdallo 2025-09-11T13:57:34.935209Z

thanks for let us know

borkdude 2025-09-11T13:57:55.207459Z

luckily it was only a small change, I thought it would be way worse

borkdude 2025-09-11T13:58:15.669189Z

it can also be "fixed" by specifying additional --initialize-at-build-time=... things, but would be nice if that's not necessay

👍 2