@plexus bb compatibility for regal is broken because of this function:
$ bb -cp src -e "(require '[lambdaisland.regal :as re]) (re/runtime-flavor)"
java.lang.NullPointerException
It expects (System/getProperty "java.runtime.version")
to always return something. In bb and GraalVM artifacts this value isn't set.
However java.version
is set:
$ clj -e '(System/getProperty "java.version")'
"11.0.3"
$ bb '(System/getProperty "java.version")'
"1.8.0_242"
Can we change that? I don't think it matters for the code in question to use either one.
https://stackoverflow.com/questions/55399001/what-is-the-difference-in-properties-java-runtime-version-and-java-versionWith that fixed, it works again:
$ bb -cp src -e "(require '[lambdaisland.regal :as re]) (re/regex [:class [\a \z]])"
#"[a-z]"
Issue: https://github.com/lambdaisland/regal/issues/13 PR: https://github.com/lambdaisland/regal/pull/14