[MDSAL-477] Cross-reference codegen code with BindingVersions Created: 03/Sep/19  Updated: 09/Jan/24

Status: Confirmed
Project: mdsal
Component/s: Binding codegen
Affects Version/s: None
Fix Version/s: 14.0.0

Type: Story Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Add Binding versioning

 Description   

Generated code needs to assert compatibility with CodeHelpers as well as general layout yang-binding. Performing this check should be light-weight and centralized.

There are thjree entry points here:

  1. ModuleInfo, which is accessed by runtime and by any interfaces which have a QNAME field
  2. Builders, which are accessed by application code
  3. Value wrapper classes, which are accessed by both

Each of these should capture BindingVersion.CURRENT at compile-time and issue callouts to BindingVersion checks at class initialization time.



 Comments   
Comment by Robert Varga [ 03/Sep/19 ]

For interfaces and wrapper classes, there needs to be a way runtime can assert they conform to a particular version. This should again be mediated by BindingVersion, by passing through this information.

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