Bug 6410: Fixed initialization of typedefs in rpc 82/45982/1
authorIgor Foltin <ifoltin@cisco.com>
Tue, 16 Aug 2016 08:10:32 +0000 (10:10 +0200)
committerIgor Foltin <ifoltin@cisco.com>
Wed, 21 Sep 2016 14:23:21 +0000 (16:23 +0200)
commit107826f9cd33c98f7e021e7147f1806e25b9c074
tree09e51d1e39b5e64c21e521ec0abd54e771e5e467
parent5310106cd4db53a3033a085ff95545d4a2841db4
Bug 6410: Fixed initialization of typedefs in rpc

In the constructor of RpcEffectiveStatementImpl we initialize substatements
of an rpc statment. However, in the for loop we are incorrectly trying to
find type substatements instead of typedef substatements.

Typedef substatements in RpcEffectiveStatementImpl are now initialized correctly.

This patch is a manual cherry-pick of the following patch:
git.opendaylight.org/gerrit/#/c/44036/

Change-Id: Ic9a02727ffb4b6e6c798360e2266dc99d77c79e7
Signed-off-by: Igor Foltin <ifoltin@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/RpcEffectiveStatementImpl.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug6410Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6410/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6410/foo.yang [new file with mode: 0644]