[MDSAL-82] An AsyncDataChangeEvent instance's getCreatedData() method can't get data if list has multi-key Created: 30/Apr/15  Updated: 09/Mar/18  Resolved: 11/Apr/16

Status: Resolved
Project: mdsal
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Leo Cat Assignee: Filip Gregor
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


External issue ID: 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.



 Comments   
Comment by Tony Tkacik [ 30/Apr/15 ]

Helium or Lithium? I believe this is fixed in Lithium otherwise it is regression.

Comment by Leo Cat [ 30/Apr/15 ]

(In reply to Tony Tkacik from comment #1)
> Helium or Lithium? I believe this is fixed in Lithium otherwise it is
> regression.

Helium-SR2.

Comment by Robert Varga [ 17/Sep/15 ]

Is this still reproducible with He-SR4 and Lithium?

Comment by Filip Gregor [ 11/Apr/16 ]

https://git.opendaylight.org/gerrit/#/c/36443/

Generated at Wed Feb 07 20:08:36 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.