Check unions for identityref types 50/90250/4
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Jun 2020 11:06:06 +0000 (13:06 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Jun 2020 12:21:38 +0000 (14:21 +0200)
commitded2b6279af65315840a43a2d507cd715bdad851
treee5f115093fb2583c45ae489c28ba73c067af1dbb
parent5bc26d07dce3555aa57af39c45d3c1812794f05f
Check unions for identityref types

If an identityref type is encountered within a union, we end up
going to TypeDefinitionAwareCodec, which is not equiped to handle
the complexities of XML-encoding identityrefs. Make sure we do
perform a check to side-step this problem.

JIRA: YANGTOOLS-1108
Change-Id: I8dcf70385aceabc5f3e33a508ddd00f926047774
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XMLStreamWriterUtils.java