I was deceived by the error message. Since I had only changed the Clojure version 1.9 => 1.10, and since the warning mentioned only Clojure code:
WARNING: Illegal reflective access by clojure.lang.InjectedInvoker/0x0000000800231c40 (file:/home/alan/.m2/repository/org/clojure/clojure/1.10.0/clojure-1.10.0.jar) I thought the problem was within the Clojure source. After investigating further, the problem was indeed a lack of type-hinting in a dependent library (Enlive). The fix was to add 2 type hints to a function call: (.parse ^java.io.InputStream s ; actual type => java.io.BufferedInputStream ^org.xml.sax.helpers.DefaultHandler ch ; actual type => net.cgrand.xml.proxy$org.xml.sax.ext.DefaultHandler2 ) A Pull Request has been filed. Much thanks to Andy Fingerhut for pointing me in the right direction. Alan Thompson On Sun, Feb 24, 2019 at 5:53 PM Andy Fingerhut <andy.finger...@gmail.com> wrote: > I believe this FAQ entry covers what is known about this issue, which many > others have also seen: https://clojure.org/guides/faq#illegal_access > > Andy > > On Sun, Feb 24, 2019 at 4:48 PM Alan Thompson <clooj...@gmail.com> wrote: > >> Upgrading from Clojure 1.9 to 1.10, I am getting a new warning: >> >> WARNING: An illegal reflective access operation has occurred >> WARNING: Illegal reflective access by >> clojure.lang.InjectedInvoker/0x0000000800231c40 >> (file:/home/alan/.m2/repository/org/clojure/clojure/1.10.0/clojure-1.10.0.jar) >> to method >> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(org.xml.sax.InputSource,org.xml.sax.HandlerBase) >> WARNING: Please consider reporting this to the maintainers of >> clojure.lang.InjectedInvoker/0x0000000800231c40 >> 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 >> >> >> Using Java 11 on Ubuntu 16.04. Should I file an issue for this? >> Alan >> >> -- > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.