freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Aime (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FREEMARKER-105) JDK 11 complains about internal API usage: SunInternalXalanXPathSupport
Date Tue, 23 Oct 2018 18:15:00 GMT

    [ https://issues.apache.org/jira/browse/FREEMARKER-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16661086#comment-16661086
] 

Andrea Aime commented on FREEMARKER-105:
----------------------------------------

For the time being it's a warning for a class that's running off the classpath, not sure what
happens to a class running off the modulepath (there is likely some command line option to
add in order to open java.xml, but not sure). Eventually access will be removed altogether,
options or not, but that hasn't happened in JDK 11 yet. 

The solution could be to depend on xalan directly (as a full dependency), or to rewrite whatever
was needed in freemarker itself.

In our case we are trying to remove as many warnings as possible, as our users just keep on
bombarding us on the list if they see any, and with JDK11, this is just one of many.

> JDK 11 complains about internal API usage: SunInternalXalanXPathSupport
> -----------------------------------------------------------------------
>
>                 Key: FREEMARKER-105
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-105
>             Project: Apache Freemarker
>          Issue Type: Bug
>            Reporter: Andrea Aime
>            Priority: Major
>
> Running jdeps on the latest freemarker release:
>  
> {code:java}
> aaime@colossus /tmp $ jdeps --jdk-internals freemarker.jar 
> freemarker.jar -> java.xml
> freemarker.ext.dom.SunInternalXalanXPathSupport -> com.sun.org.apache.xml.internal.utils.PrefixResolver
JDK internal API (java.xml)
> freemarker.ext.dom.SunInternalXalanXPathSupport -> com.sun.org.apache.xpath.internal.XPath
JDK internal API (java.xml)
> freemarker.ext.dom.SunInternalXalanXPathSupport -> com.sun.org.apache.xpath.internal.XPathContext
JDK internal API (java.xml)
> freemarker.ext.dom.SunInternalXalanXPathSupport -> com.sun.org.apache.xpath.internal.objects.XBoolean
JDK internal API (java.xml)
> freemarker.ext.dom.SunInternalXalanXPathSupport -> com.sun.org.apache.xpath.internal.objects.XNodeSet
JDK internal API (java.xml)
> freemarker.ext.dom.SunInternalXalanXPathSupport -> com.sun.org.apache.xpath.internal.objects.XNull
JDK internal API (java.xml)
> freemarker.ext.dom.SunInternalXalanXPathSupport -> com.sun.org.apache.xpath.internal.objects.XNumber
JDK internal API (java.xml)
> freemarker.ext.dom.SunInternalXalanXPathSupport -> com.sun.org.apache.xpath.internal.objects.XObject
JDK internal API (java.xml)
> freemarker.ext.dom.SunInternalXalanXPathSupport -> com.sun.org.apache.xpath.internal.objects.XString
JDK internal API (java.xml)
> freemarker.ext.dom.SunInternalXalanXPathSupport$1 -> com.sun.org.apache.xml.internal.utils.PrefixResolver
JDK internal API (java.xml){code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message