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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 7983

    Description

      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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: