[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:
Relates
relates to YANGTOOLS-1108 Leaf of type union containing identit... Resolved
relates to MDSAL-552 Binding/DOM codec fails when leafref ... Resolved

 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.


Generated at Wed Feb 07 20:55:13 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.