You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Robert Seletsky <rs...@unm.edu> on 2019/03/13 18:38:44 UTC

Migrating to Java 11 get compiler warnings

Hello,

  Rebuilding (with Java 11.0.2) a Java API (generated by WSDL) and even though have Maven dependency:

<dependency>
    <groupId>org.apache.ws.xmlschema</groupId>
    <artifactId>xmlschema-core</artifactId>
    <version>2.2.4</version>
</dependency>


Get:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ws.commons.schema.utils.DOMUtil (file:/C:/Users/rseletsk/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.2.1/xmlschema-core-2.2.1.jar) to method com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getInputEncoding()
WARNING: Please consider reporting this to the maintainers of org.apache.ws.commons.schema.utils.DOMUtil
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



Robert Seletsky
University of New Mexico IT



Re: Migrating to Java 11 get compiler warnings

Posted by Colm O hEigeartaigh <co...@apache.org>.
For the record, this is fixed in XML Schema 2.2.4. The error below
references XML Schema 2.2.1.

Colm.

On Wed, Mar 13, 2019 at 6:38 PM Robert Seletsky <rs...@unm.edu> wrote:

> Hello,
>
>   Rebuilding (with Java 11.0.2) a Java API (generated by WSDL) and even
> though have Maven dependency:
>
> <dependency>
>     <groupId>org.apache.ws.xmlschema</groupId>
>     <artifactId>xmlschema-core</artifactId>
>     <version>2.2.4</version>
> </dependency>
>
>
> Get:
>
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.apache.ws.commons.schema.utils.DOMUtil
> (file:/C:/Users/rseletsk/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.2.1/xmlschema-core-2.2.1.jar)
> to method
> com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getInputEncoding()
> WARNING: Please consider reporting this to the maintainers of
> org.apache.ws.commons.schema.utils.DOMUtil
> 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
>
>
> Robert Seletsky
> University of New Mexico IT
>
>
>

-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com