BUG-3189: Check consistency of Instance Identifier and Data 25/20225/4
authorTony Tkacik <ttkacik@cisco.com>
Wed, 13 May 2015 09:23:27 +0000 (11:23 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 19 May 2015 18:25:56 +0000 (18:25 +0000)
commit8bb72bff26c4f1d2da94af6463ba8ae212e2223a
treecb0f74bf241ed61bb573c46e295605b3dc72c30a
parent12b6252d832dc4c7e0a965acc0136ca4a9574db4
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: I25918f1f866beadb1ba7c9687ba1a880942a0d9e
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/InMemoryDataTreeModification.java
yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/ListConstraintsValidationTest.java