Fix DataTreeCandidateNodes handling of deleted nodes 40/102540/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 3 Oct 2022 08:42:11 +0000 (10:42 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 3 Oct 2022 10:54:10 +0000 (12:54 +0200)
commit7482e7288e33d89b34e711213724294b8d524b67
tree51733100c6d2d1c02244699c54a8304fad00d599
parenta5d8682a4a79a3cebf8de0ab93214cd7dc40d577
Fix DataTreeCandidateNodes handling of deleted nodes

Recursive candidate should be used only for DistinctNodeContainer,
not all NormalizedNodeContainers. Fix the check so that we do not hit a
ClassCastException.

JIRA: YANGTOOLS-1455
Change-Id: I6a89f8e59a7f8d8b36c5c5d2990290f66f79f529
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit a3bdb0fbc05db361f7c105469ffd73b1e35390be)
data/yang-data-tree-spi/src/main/java/org/opendaylight/yangtools/yang/data/tree/spi/DataTreeCandidateNodes.java
data/yang-data-tree-spi/src/test/java/org/opendaylight/yangtools/yang/data/tree/spi/YT1455Test.java [new file with mode: 0644]