[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:
Relates
relates to MDSAL-712 Action(Provider)Service translates gr... Resolved

 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().

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