On Thu, Sep 7, 2017 at 10:20 PM, Bill Robertson <[email protected]> wrote:
> Does it run in Java 9? > Excellent question! The short and possibly misleading answer is yes, as do all other 1.9 alphas, and 1.8, and probably earlier versions of Clojure as well *with some important caveats*: * CLJ-2077 - clojure.core currently uses classes outside the new Java base module (specifically java.sql.Timestamp for #inst support). This is a problem if you place the Clojure jar in the bootclasspath, which lein and (I think) boot both do for faster startup. The lein ticket for this is https://github.com/technomancy/leiningen/issues/2149. There are changes being made in lein to allow this to be more configurable. Additionally, CLJ-2077 is tracking a change in core to defer loading of #inst support if the java.sql.Timestamp class is not available, which would allow Clojure to be loaded from the bootclassloader (without #inst support) again. This fix just missed getting into this alpha, but should be coming in probably the next release. * CLJ-2066 - there are some cases where reflection can lead to Clojure incorrectly invoking a method from a class in a non-visible module. Avoiding reflection in the first place is probably the best workaround for this, and turning off various module visibility constraints via JVM flags is another. We are working toward a more comprehensive solution to this in CLJ-2066, which I expect to be included in Clojure 1.9. * Users of dynamic classloaders may experience issues due to the changes in the classloader hierarchy. This is not really a Clojure core issue, but you can encounter it through any tooling that uses dynamic classloaders. More on this here: https://github.com/tobias/clojure-java-9/issues/3 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
