[MDSAL-721] ActionSpec.build() does not handle KeyedListActions Created: 10/Feb/22 Updated: 14/Feb/22 Resolved: 10/Feb/22 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding API |
| Affects Version/s: | 8.0.8, 8.0.9, 8.0.10 |
| Fix Version/s: | 9.0.0, 8.0.11 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Peter Suna | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | regression | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
ActionSpec.build() requires Action<InstanceIdentifier<P>, ?, ?>. which works in most circumstances. It does not work for actions defined in a keyed list, as those are specialized to Action<KeyedInstanceIdentifier<P>, ?, ?>. This renders ActionSpec unusable for such interfaces. |
| Comments |
| Comment by Robert Varga [ 10/Feb/22 ] |
|
This is just the specification, i.e. the InstanceIdentifier here is a wildcard to bind the instantiation site. Just use the regular withPathChild() methods without the key. The target instance identifier is specified in Action.invoke(). |