[MDSAL-449] Empty lists/maps have no semantic meaning in Binding Created: 21/May/19  Updated: 22/Apr/20  Resolved: 22/Apr/20

Status: Resolved
Project: mdsal
Component/s: Binding codegen, Binding runtime, Binding Spec
Affects Version/s: None
Fix Version/s: 6.0.0

Type: Epic Priority: Highest
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:
Blocks
blocks MDSAL-456 Inconsistent list handling in Binding... Resolved
Epic Name: Binding empty lists/maps

 Description   

There is a semantic difference between an empty list and a null list in Binding. Since our backing implementation is YANG-based, there is little value in this difference and hence it should be eliminated.

There are three main aspects:

  1. binding runtime, which needs to turn empty lists to nulls in the Binding->DOM direction
  2. binding spec, which needs to redefine how a List-based equals works, which really is defined by mdsal-binding-java-api-generator's output
  3. binding runtime (again), which needs to update its equals() and translation implemenetation

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