graalvm 2025-09-11

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)))

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

ah here we go again :)

thanks for let us know

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

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

👍 2