Opened 11 years ago

Last modified 7 years ago

#10040 closed defect

Broken compilation for newer JDKs — at Version 1

Reported by: akks Owned by: team
Priority: normal Milestone: 14.06
Component: Core Version: latest
Keywords: Cc: Don-vip

Description (last modified by akks)

Adding JAXB-generated classes in r7133 leads to the problem with JDK8:

svn co https://josm.openstreetmap.de/svn/trunk
cd trunk
ant dist 

gives the following exception:

BUILD FAILED
F:\Java\trunk\build.xml:207: java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/F:/Java/trunk/tools/jaxb/jaxb-xjc.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property. 

The problem is known for newer JDKs (security reasons), but I could not solve it by adding <arg value="-disableXmlSecurity" />.

Change History (1)

comment:1 by akks, 11 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.