You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2015/01/23 19:57:34 UTC
[jira] [Assigned] (PDFBOX-2628) XmpSerializer will never throw
XmpSerializationException
[ https://issues.apache.org/jira/browse/PDFBOX-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson reassigned PDFBOX-2628:
-----------------------------------
Assignee: John Hewson
> 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)