Check unions for instance-identifier types 86/90286/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:34 +0000 (17:20 +0200)
commit9b00c3a0346e5ef513a451a9adde25c426b4af77
tree41728e15e27a82375d8a3cdd14e526735a8f9bf3
parent1a59c23f4eb8e9b4fc048fce724bcfe6d944be94
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