ModelDriven / fUML-Reference-Implementation

Open-source implementation of the Foundational Semantics for Executable UML Models (Foundational UML) specification.

Repository from Github https://github.comModelDriven/fUML-Reference-ImplementationRepository from Github https://github.comModelDriven/fUML-Reference-Implementation

Problems with SAXParser when building with Java 8 JDK

seidewitz opened this issue · comments

Building the implementation with the Java 8 JDK results in the following warnings:

 [java] Warning:  org.apache.xerces.parsers.SAXParser: http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit
 [java] Compiler warnings:
 [java]   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: http://javax.xml.XMLConstants/property/accessExternalDTD'
 [java] Warning:  org.apache.xerces.parsers.SAXParser: http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit
 [java] Compiler warnings:
 [java]   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: http://javax.xml.XMLConstants/property/accessExternalDTD'
 [java] Warning:  org.apache.xerces.parsers.SAXParser: http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit
 [java] Compiler warnings:
 [java]   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: http://javax.xml.XMLConstants/property/accessExternalDTD'
 [java] Warning:  org.apache.xerces.parsers.SAXParser: http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit
 [java] Compiler warnings:
 [java]   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: http://javax.xml.XMLConstants/property/accessExternalDTD'

The build completes, but tests that read XML fail with exceptions such as:

org.xml.sax.SAXNotRecognizedException: http://javax.xml.XMLConstants/feature/secure-processing
at org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java:1448)
...

This problem seems to be caused by using a too-old version of the Xerxces parser with Java 8. Changing the XercesImpl version to the latest version (2.11.0) fixes the problem.

Fixed in v1.2.0a.