Bug 6410: Fixed initialization of typedefs in rpc 67/44067/2
authorIgor Foltin <ifoltin@cisco.com>
Tue, 16 Aug 2016 08:10:32 +0000 (10:10 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 16 Aug 2016 15:54:20 +0000 (15:54 +0000)
commit44904a6525963dc4d0fbe4937a3a9edfbeabc383
treea5fae0854e836bccdf2e67c34b65077b62465e0d
parent144b030074a4ce47046c900ea4b2c06cc2adf74b
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.

Change-Id: Ic9a02727ffb4b6e6c798360e2266dc99d77c79e7
Signed-off-by: Igor Foltin <ifoltin@cisco.com>
(cherry picked from commit 8b7928e1337c94936434af5b4d9844804d2720de)
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]