Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2628

XmpSerializer will never throw XmpSerializationException

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: XmpBox
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              jahewson John Hewson
              Reporter:
              jahewson John Hewson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: