Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-85

Binding Model API: restrictions do not match java type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • 14.0.0
    • None
    • Binding runtime
    • Operating System: All
      Platform: All

    • 3399

      Restrictions returned for a particular ConcreteType should match the underlying type. The parser generates restrictions in whatever the default is, for example 0 for Short is expressed as a Long. This is largely fine in binding-independent world, but makes it unusable if we want to actually use restrictions with objects of that type.

      BaseYangTypes is a prime offender, as its singleRangeRestrictions() callers do the wrong thing. Furthermore BindingGeneratorUtil needs to translate whatever it sees to the appropriate type.

            Unassigned Unassigned
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: