tobias / dynapath

A Clojure abstraction for modifiable/readable class loaders.
Other
44 stars 10 forks source link

Reporting illegal reflective access operation has occurred (Context: Java10 on mac osX HS) #10

Open based2 opened 5 years ago

based2 commented 5 years ago

bsd% boot --version Downloading https://github.com/boot-clj/boot/releases/download/2.7.2/boot.jar... Running for the first time, BOOT_VERSION not set: updating to latest. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by dynapath.defaults$fn1516$fn1517 (file:/Users/xxxx/.boot/cache/lib/2.7.2/aether.uber.jar) to method java.net.URLClassLoader.addURL(java.net.URL) WARNING: Please consider reporting this to the maintainers of dynapath.defaults$fn1516$fn1517 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Retrieving maven-metadata.xml from https://repo.clojars.org/ Retrieving boot-2.8.2.pom from https://repo.clojars.org/ (2k) Retrieving boot-2.8.2.jar from https://repo.clojars.org/ (3k)

http://boot-clj.com

Sun Sep 16 16:16:35 CEST 2018

BOOT_VERSION=2.8.2 BOOT_CLOJURE_VERSION=1.8.0 BOOT_CLOJURE_NAME=org.clojure/clojure

bsd% java -version java version "10" 2018-03-20 Java(TM) SE Runtime Environment 18.3 (build 10+46) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)

===== https://clojureverse.org/t/java-10-announcement-implications-for-clojure/1583 https://clojure.org/community/devchangelog

camsaul commented 5 years ago

I'm seeing this too but with the message

mranderson048.orchard.v0v3v0.dynapath.v0v2v5.dynapath.defaults$eval1644$fn__1645 to method java.net.URLClassLoader.addURL(java.net.URL)
tobias commented 5 years ago

As of 1.0.0, dynapath doesn't extend URLClassLoader due to this Java 9 restriction (see https://github.com/tobias/dynapath#note-on-urlclassloader).

@based2 For boot, I believe the issue is boot's aether lib brings in pomegranate 1.0.0, which brings in an older dynapath - having boot instead use pomegranate 1.1.0 should resolve this, since it uses dynapath 1.0.0.

@camsaul The cider issue is a known one, but doesn't have a solution at the moment: https://github.com/clojure-emacs/orchard/issues/20