Check unions for identityref types 85/90285/1
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 15:20:34 +0000 (17:20 +0200)
commit1a59c23f4eb8e9b4fc048fce724bcfe6d944be94
treebf139d99515fc271415ef7fc5a004169eaca779c
parentf02964085f6f16b7c6ba129c3c9dcf9c4a79af03
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>
(cherry picked from commit ded2b6279af65315840a43a2d507cd715bdad851)
yang/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XMLStreamWriterUtils.java