Fix XML codec error reporting 19/107519/5
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 26 Aug 2023 20:59:58 +0000 (22:59 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 27 Aug 2023 09:22:28 +0000 (11:22 +0200)
commit2ebb91d3916ba7d252df9386cf3c0067040d4a9b
treeed085cf182b26490c1dc43e3df9ed68c0beacb64
parent64826bc2c5d076bc1f241c0a03a13f12b8b60d4b
Fix XML codec error reporting

When we deal with anything ContainerLike, aside of ContainerSchemaNode
and ListNodeSchemaNode, we should just accept there is no support and
proceed to throw a descriptive exception.

JIRA: YANGTOOLS-1533
Change-Id: I7a173f3a21dd55d21e48570690427cee0c0ad16f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
codec/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlParserStream.java
codec/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/YT1533Test.java [new file with mode: 0644]