Deficiencies in current yangtool generation of ietf types.
(YANGTOOLS-418)
|
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | codecs, data-impl, data-util, parser |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.0 |
| Type: | Sub-task | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Our current mapping of unsigned types to java.lang widens them to accommodate to the increased range. This is quite wasteful in case of uint32 (24 bytes instead of 16) and uint64 (64 bytes instead of 24). This type overlap also does not play well with MD-SAL Binding, as it causes uncompilable code for unions – see Address these concerns by switching unsigned types to use yang.common.Uint* classes, which provide this encapsulation. |