Bug 7246 - Fix of SchemaTracker initialization and lookup of schema nodes 41/62541/2
authorPeter Kajsa <pkajsa@cisco.com>
Mon, 14 Aug 2017 17:35:33 +0000 (19:35 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 27 Sep 2017 08:22:31 +0000 (08:22 +0000)
commit98aa0eb0aae72ec28d3b8dfa9bd3646930721ca0
treeede624fa114e2bc0930b7cfb6d887a62cd40f4c0
parente3700b025645e272a68dd65b07f13bc37c85377c
Bug 7246 - Fix of SchemaTracker initialization and lookup of schema nodes

SchemaUtils methods perform lookup in both the namespace of groupings and
the namespace of all leafs, leaf-lists, lists, containers, choices, rpcs,
actions, notifications, anydatas, and anyxmls. In consequence, performed
lookups are ambiguous due to possible name conflicts between these namespaces.

Change-Id: Icd3e141b21d0adaf0126b539454e640c0ea0b5a6
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
(cherry picked from commit d77eb113748d9571c5bd9588e8f6c745182b8b05)
yang/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/Bug7246Test.java [new file with mode: 0644]
yang/yang-data-codec-gson/src/test/resources/bug7246/json/expected-output.json [new file with mode: 0644]
yang/yang-data-codec-gson/src/test/resources/bug7246/yang/rpc-test.yang [new file with mode: 0644]
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/codec/SchemaTracker.java
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/SchemaOrderedNormalizedNodeWriter.java
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/SchemaUtils.java
yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/SchemaUtilsTest.java [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/schema-utils-test/foo.yang [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/schema-utils-test/name-conflicts.yang [new file with mode: 0644]