maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MWAR-405) Workaround XStream incompatibility with Java9
Date Wed, 12 Apr 2017 07:22:41 GMT

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

ASF GitHub Bot commented on MWAR-405:
-------------------------------------

Github user eolivelli closed the pull request at:

    https://github.com/apache/maven-plugins/pull/112


> Workaround XStream incompatibility with Java9
> ---------------------------------------------
>
>                 Key: MWAR-405
>                 URL: https://issues.apache.org/jira/browse/MWAR-405
>             Project: Maven WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Enrico Olivelli
>            Priority: Blocker
>
> The problem is that XStreams tries to access "comparator" field of java.util.TreeMap
and this is forbidden in Java9
> {code}
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private
final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does
not "opens java.util" to unnamed module
> Happens while initializing org.apache.maven.plugins.war.util.WebappStructureSerializer
> {code}
> A possibile workaround is to change the initialization of XStreams in a way that only
useful converters are registers, thus bypassing the problem



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message