BUG-3189: Check consistency of Instance Identifier and Data 78/21978/1
authorTony Tkacik <ttkacik@cisco.com>
Wed, 13 May 2015 09:23:27 +0000 (11:23 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Fri, 5 Jun 2015 12:59:15 +0000 (14:59 +0200)
commit82f9c164bb5649df8a7245acbcc98845c9827a2e
treeda851daf422926074286b861f5cee6e1df552feb
parent1fc3163db5d6ce5fc7ebf7ca7310e740e0718fe7
BUG-3189: Check consistency of Instance Identifier and Data

DataTree allows for a NormalizedNode to be stored at a position which is
inconsistent with its identifier. This can lead to weird errors, as
child metadata nodes are created. Add an explicit check to ensure this
cannot occur.

Change-Id: I0fbbec13a5c4121b3441869d244666e218305d57
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
(cherry picked from commit 8bb72bff26c4f1d2da94af6463ba8ae212e2223a)
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/InMemoryDataTreeModification.java