[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 |
||
| 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-SR2. |
| Comment by Robert Varga [ 17/Sep/15 ] |
|
Is this still reproducible with He-SR4 and Lithium? |
| Comment by Filip Gregor [ 11/Apr/16 ] |