Bug 7246 - Fix of SchemaTracker initialization and lookup of schema nodes 12/61712/11
authorPeter Kajsa <pkajsa@cisco.com>
Mon, 14 Aug 2017 17:35:33 +0000 (19:35 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 1 Sep 2017 12:30:23 +0000 (12:30 +0000)
commitd77eb113748d9571c5bd9588e8f6c745182b8b05
tree3454690617ab9bdbd3a83e26a3580de74a2a2308
parent3bd4c73cc6b8b2a3da0007cf6c9854fce4c66dba
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>
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]