Although it looks like that call is intentionally reflective to cover 
several possible types. Probably need to solve that with a cond to check 
for and hint the actual type at the point of the call.

On Tuesday, November 14, 2017 at 8:31:48 AM UTC-6, Alex Miller wrote:
>
> I can replicate that in the tupelo tests, but it's coming from enlive, not 
> data.xml. I think enlive needs a type hint on s in this function:
>
> https://github.com/cgrand/enlive/blob/master/src/net/cgrand/xml.clj#L85
>
>
>   actual: java.lang.IllegalAccessException: class clojure.lang.Reflector 
> cannot access class com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl 
> (in module java.xml) because module java.xml does not export 
> com.sun.org.apache.xerces.internal.jaxp to unnamed module @7b0eff2
>  at jdk.internal.reflect.Reflection.throwIllegalAccessException 
> (Reflection.java:423)
>     jdk.internal.reflect.Reflection.throwIllegalAccessException 
> (Reflection.java:414)
>     jdk.internal.reflect.Reflection.ensureMemberAccess 
> (Reflection.java:112)
>     java.lang.reflect.AccessibleObject.slowCheckMemberAccess 
> (AccessibleObject.java:632)
>     java.lang.reflect.AccessibleObject.checkAccess 
> (AccessibleObject.java:624)
>     java.lang.reflect.Method.invoke (Method.java:539)
>     clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
>     clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
> *    net.cgrand.xml$startparse_sax.invokeStatic (xml.clj:85)*
> *    net.cgrand.xml$startparse_sax.invoke (xml.clj:76)*
> *    net.cgrand.xml$parse.invokeStatic (xml.clj:99)*
>     net.cgrand.xml$parse.invoke (xml.clj:87)
>     net.cgrand.xml$parse.invokeStatic (xml.clj:94)
>     net.cgrand.xml$parse.invoke (xml.clj:87)
>     net.cgrand.enlive_html$xml_parser.invokeStatic (enlive_html.clj:55)
>     net.cgrand.enlive_html$xml_parser.invoke (enlive_html.clj:51)
>     net.cgrand.enlive_html$eval34196$fn__34197.invoke (enlive_html.clj:103)
>
>>
>>

-- 
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.

Reply via email to