-
Bug
-
Resolution: Won't Do
-
Medium
-
None
-
Oxygen
Binding V2 maps enumerations to enums, which is a mistake from binding V1. YANG enumerations are really just a fancy name for string sets, as evidenced by 'enum "*"'. We cannot rely on sensible mapping of enum statement arguments and therefore should not be mapping enumerations to enums.
Furthermore YANG 1.1 allows enumerations to be restricted to a subset of a base enumeration. Since Java enums cannot be subclassed, we cannot form a base/derived type relationship such that a derived enum instance is acceptable by a base enum receiver.
- relates to
-
MDSAL-326 Binding V1 maps identities to java.lang.Class
- Resolved