[MDSAL-51] Binding Java API Generator -> NPE during code generation from specific yang models (package name is null for UnionType) Created: 05/Nov/14 Updated: 09/Mar/18 Resolved: 10/Mar/17 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Martin Ciglan | Assignee: | Martin Ciglan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||||||||||
| External issue ID: | 2323 | ||||||||||||||||
| Description |
|
[ERROR] yang-to-sources: Unable to generate sources with org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl generator package name cannot be null, problem with hard-coded UnionType class: public static final class UnionType implements Type { |
| Comments |
| Comment by Martin Ciglan [ 23/Jan/15 ] |
|
just to add, based on analysis of this issue: error occurs when using imported typedef based on union type: module module1 { import module2 { prefix m2; } container foo { module module2 { } Error doesn't occur if: typedef host { type string; }2) typedef host is inside of module1 |
| Comment by Vratko Polak [ 04/Jul/16 ] |
|
Currently developed openconfig models trigger this Bug. |
| Comment by Martin Ciglan [ 10/Feb/17 ] |
|
being fixed as part of types resolution within Binding generator for v2 |
| Comment by Martin Ciglan [ 08/Mar/17 ] |
|
fix pushed: |