[YANGTOOLS-1562] NormalizedNode.toString() changed Created: 15/Jan/24  Updated: 18/Jan/24  Resolved: 16/Jan/24

Status: Resolved
Project: yangtools
Component/s: data-api, data-spi
Affects Version/s: 13.0.0
Fix Version/s: 13.0.1

Type: Bug Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: pt, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to YANGTOOLS-1563 Unstable NodeWithValue.toString() Resolved
relates to CONTROLLER-2091 Improve JSON export Confirmed

 Description   

Controller is using a rather unfortunate toString() conversion during JSON export.
The output has changed for ImmutableLeafNode, as we now have two distinct implementations, whereas previously we used ImmutableLeafNode for normal data and a subclass for byte[] data. This leads to toString() saying 'Regular[]' instead of 'ImmutableLeafNode[]'.

Add a way to override the reported class and provide overrides for LeafNode and LeafSetEntryNode implementations.


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