Cross-reference codegen code with BindingVersions
Description
Activity
Show:
Robert Varga September 3, 2019 at 10:01 PM
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.
Details
Details
Assignee
Unassigned
UnassignedReporter
Robert Varga
Robert VargaComponents
Fix versions
Priority
Created September 3, 2019 at 9:56 PM
Updated June 24, 2024 at 8:45 AM
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:
ModuleInfo, which is accessed by runtime and by any interfaces which have a QNAME field
Builders, which are accessed by application code
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.