Check unions for instance-identifier types 52/90252/2
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 12:21:38 +0000 (14:21 +0200)
commit8bf10220fc15babe0ad92ae2f439f8fdf925986a
tree3fc471b74318f1610b4e783ed76c5250d3790e21
parentded2b6279af65315840a43a2d507cd715bdad851
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>
yang/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XMLStreamWriterUtils.java