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

Parameters sequence of generated constructor for bits type leaf should be same as the sequence of its bit fields defined in its yang file

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Won't Do
    • None
    • None
    • Binding V2 codegen
    • None

    Description

      Now the parameters sequence of generated constructor for bits type leaf is the alphabetic sequence of names of its bit fields defined in its yang file. Such alphabetic sequence comes from the sort operation on all properties in ClassTemplate.xtend in v1 binding generator.

      This is not natual and if application developper doesn't carefully take a look at the generated constructor, they will construct such leaf node in the sequence of bit fields defined in the yang file. And such misuse won't be reported by the Java compiler.

      Can we eliminate the sort operation on all properties in ClassTemplate.xtend and let the parameters of all generated constructors appear in their natural order?

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            ykq Kangqian Yin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: