Actions
Bug #4474
closedJDK9: Illegal reflective access by net.sf.saxon.java.JavaPlatform to constructor com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl()
Start date:
2020-03-04
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:
Description
To support parse-xml-fragment(), Saxon attempts to instantiate the default JDK parser
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
(For background, see bugs 4127 and 4253)
Under JDK9, with its module system, this access may generate warnings or errors.
JDK9 allows the default SAX parser to be accessed with the new method SAXParserFactory.newDefaultInstance()
, so we should use this method if it is available. We can achieve this easily enough with reflexive code that continues to work under JDK8.
Please register to edit this issue
Actions