Check unions for instance-identifier types 83/90283/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Jun 2020 12:11:05 +0000 (14:11 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Jun 2020 15:20:13 +0000 (17:20 +0200)
commit095a241ca293db894fd119b9ec70fa14c8c25dda
tree2c0a63e69f84a8c30f52b00872d90ec20186e608
parenta7a9f1c981e55e227328d081fe5740d990e88cdb
Check unions for instance-identifier types

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

Change-Id: Ib5bc79a26808f4101ce182e092418a29e5b7bdc8
JIRA: YANGTOOLS-1108
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 8bf10220fc15babe0ad92ae2f439f8fdf925986a)
yang/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XMLStreamWriterUtils.java