[YANGTOOLS-359] NoSuchElementException during java binding generation from yang model with choice in module body at top level Created: 06/Nov/14 Updated: 10/Apr/22 Resolved: 07/May/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Peter Kajsa | Assignee: | Peter Kajsa |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2333 |
| Description |
|
BindingGeneratorImpl fails during java source code generation from yang model witch contains choice element directly in module body at top level. For an example: revision 2014-10-07 { description "Choice test."; } choice my-choice { } } This is because the line 1213 and 1214 in BindingGeneratorImpl.java class: The parent path of choice element is empty (because parent is module) and therefore iterator.next() on the path fails. Exception stack trace: .... |
| Comments |
| Comment by Peter Kajsa [ 13/Nov/14 ] |