Bug 4145: Issue augmenting choice inside a list 03/26503/3
authorPeter Kajsa <pkajsa@cisco.com>
Fri, 4 Sep 2015 07:50:42 +0000 (09:50 +0200)
committerPeter Kajsa <pkajsa@cisco.com>
Wed, 9 Sep 2015 07:46:43 +0000 (07:46 +0000)
commit77515ca31ce7e593a3a3971c1d433fbd59e1dd44
tree4f6c02c4517d063f731caf070aec1d4ad616192b
parent9d8177c4f50a64adeb591f07d2b8772f9c1befd4
Bug 4145: Issue augmenting choice inside a list

The problem occurs when target node of uses-augment statement
is added by uses from another grouping and the uses statement
is not directly inside the grouping, but it is nested below
other elements (e.g. list, container etc.) in the grouping.
In this case the original of the target node is not found and
the IllegalStateException is thrown.

Change-Id: I1b0329d5da754251040894c0ccfe920bf8190aa4
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/BindingGeneratorImpl.java
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/yangtools/sal/binding/generator/impl/Bug4145Test.java [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/bug-4145/foo.yang [new file with mode: 0644]