does native-image handle Java 11 yet?
it does
@ghadi https://github.com/graalvm/graalvm-ce-builds/releases, you'll need to download one that says java11
there is however an issue with clojure + jdk11 when you use Reflector.java. It has a piece of dynamic code that dispatches between 8 and 11 based on some runtime value which confuses the svm analyzer. I worked around that just by copying Reflector.java and removing that dynamic code: https://github.com/borkdude/sci/blob/1294b17d402bfed519289990648cb01c45e8e3a8/reflector/src-java/clojure/lang/Reflector.java#L29-L43
I'm still not using JDK11 for anything GraalVM at the moment, just fyi
any specific reason you would want to use jdk11, or just curious?
I'm guessing the new http client :)
curious about making stuff with the built in http://java.net.http client
I win!
yeah -- gets rid of a bunch of dependencies
if you need an http client in a graal binary, you can also use clj-http-lite which has no other dependencies: https://github.com/borkdude/clj-http-lite/blob/fa277d8264b061db8ae9b4fc117b74b1fc2d93ce/project.clj#L7
(but it doesn't do async like the JDK11 one I think)
it uses HttpURLConnection
https://github.com/taylorwood/clojurl also uses clj-http-lite