Fork me on GitHub
#graalvm
<
2023-09-20
>
lread02:09:14

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]

skynet02:09:26

dunno, but I stopped needing to parse versions manually after I found this https://github.com/xsc/version-clj

lread03:09:26

Yeah that is a handy library, I often use it too.

👍 2