[ANN] [org.clojure/java.classpath "0.3.0"] with Java 9 support

104 views
Skip to first unread message

Stuart Sierra

unread,
May 6, 2018, 2:02:58 PM5/6/18
to Clojure
search the Java classpath.

Build #339 is complete, should be sync'd with the
Maven Central repository soon.

Release 0.3.0:

* Fix [CLASSPATH-8]: empty classpath returned on Java 9.

Starting with Java 9, the default class loader is no longer an
instance of URLClassLoader, so `classpath` returned an empty sequence.
The strategy of using URLClassLoader started with release [0.2.0] to
accommodate Java application containers (see [CLASSPATH-1] and
[CLASSPATH-2]). After this change, application containers based on
URLClassLoader should still work as expected.

On Java 9 without an application container, it appears that the
`java.class.path` system property is the only way to get the
classpath. While this is essentially a bugfix for Java 9
compatibility, it is a change in behavior, hence the version change
from 0.2 to 0.3.

Leiningen dependency information:

    [org.clojure/java.classpath "0.3.0"]

Maven dependency information:

    <dependency>
      <groupId>org.clojure</groupId>
      <artifactId>java.classpath</artifactId>
      <version>0.3.0</version>
    </dependency>

Gradle dependency information:

    compile "org.clojure:java.classpath:0.3.0"


Bozhidar Batsov

unread,
May 7, 2018, 6:19:27 AM5/7/18
to clo...@googlegroups.com
Thanks!

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscribe@googlegroups.com
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 clojure+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages