A little odd thing for GraalVM JDK 21: the Java version is returned as major only, which (I think) is unusual (some of my version parsing code barfs on this).
$ java --version INT ✘ 18s 10:12:31 PM
openjdk 21 2023-09-19
OpenJDK Runtime Environment GraalVM CE 21+35.1 (build 21+35-jvmci-23.1-b15)
OpenJDK 64-Bit Server VM GraalVM CE 21+35.1 (build 21+35-jvmci-23.1-b15, mixed mode, sharing)
And system property:
$ clj ✔ 10:12:33 PM
Clojure 1.11.1
user=> (System/getProperty "java.version")
"21"
user=> (.version (Runtime/version))
[21]dunno, but I stopped needing to parse versions manually after I found this https://github.com/xsc/version-clj
Yeah that is a handy library, I often use it too.