[ 
https://issues.apache.org/jira/browse/PDFBOX-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson resolved PDFBOX-2628.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

> 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
>             Fix For: 2.0.0
>
>
> 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)

Reply via email to