John Hewson created PDFBOX-2628:
-----------------------------------
Summary: XmpSerializer will never throw XmpSerializationException
Key: PDFBOX-2628
URL: https://issues.apache.org/jira/browse/PDFBOX-2628
Project: PDFBox
Issue Type: Improvement
Components: XmpBox
Reporter: John Hewson
The constructor of XmpSerializer throws XmpSerializationException if
DocumentBuilderFactory#newDocumentBuilder throws XmpSerializationException.
However, that will never happen because we don't call #setAttributes() on the
DocumentBuilderFactory before calling #newDocumentBuilder - if you look at the
source code for DocumentBuilderFactory, you'll see that this means that
ParserConfigurationException is never thrown when attributes = null.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)