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

Binding Model API: restrictions do not match java type

    XMLWordPrintable

Details

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

    • 3399

    Description

      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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated: