[
https://issues.apache.org/jira/browse/PDFBOX-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14289728#comment-14289728
]
ASF subversion and git services commented on PDFBOX-2628:
---------------------------------------------------------
Commit 1654311 from [~jahewson] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1654311 ]
PDFBOX-2628: XmpSerializer() will never throw XmpSerializationException
> 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
> Assignee: 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)