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

An AsyncDataChangeEvent instance's getCreatedData() method can't get data if list has multi-key

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Operating System: Windows
      Platform: PC

    • 3090

    Description

      When AsyncDataChangeEvent's getCreatedData() method is called to get changed list object, yangtools will use reflect to create an instance. The order of constructor's arguments are same as the keys order which are defined in yang model. But the real order of Key object's constructor's arguments which are generated by yangtools are alpha. So if keys order in yang model don't match alpha order, will get an IllegalArgumentException when call getCreatedData() method.

      Sources are in org.opendaylight.yangtools.binding.data.codec.impl.BindingCodecContext.

      Attachments

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

        Activity

          People

            filip.gregor@pantheon.tech Filip Gregor
            chen.xi26@zte.com.cn Leo Cat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: