Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-758

yang-data-codec-xml: reuse codecs across documents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 7983

      XmlCodecFactory is making the mistake of caching the codecs based on the combination of NamespaceContext and TypeDefinition.

      This means the codecs cannot be reused across documents, as these result in distinct NamespaceContext.

      The XmlCodec interface already provides a writer, from which we can get the namespace context, hence it should be relatively easy to pass this down for the duration of the serialization request.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: