XML include doesn't work from OpenJDK 1.8.0_102

Solution Verified - Updated -

Issue

  • My data in an included XML file, mydata.xml below, are not instantiated by JAXB.unmarshal(). It worked till OpenJDK 1.8.0_101.
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="xml" href="mydata.xml"></xi:include>
  • Oracle JDK has the same issue between 1.8.0_101 and 1.8.0_102.

Environment

  • Java Development Kit (JDK) 1.8.0_102 and later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.