[YANGTOOLS-1110] Issue a warning when an identityref is not a QName Created: 04/Jun/20 Updated: 04/Jun/20 Resolved: 04/Jun/20 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | codecs |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.3, 4.0.10 |
| Type: | Improvement | 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 |
|
XML codec at least is falling back to using Object.toString() when in encounters an object different to QName in an identityref leaf. Such data is a violation of NormalizedNode contract and should be warned about. Add the corresponding logic to print out a stack trace once for every type violating this. |