[
https://issues.apache.org/jira/browse/TUSCANY-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vamsavardhana Reddy updated TUSCANY-2311:
-----------------------------------------
Attachment: TUSCANY-2311.patch
TUSCANY-2311.patch: Fixing this problem requires changing the
JavaImplementation interface i.e., JavaImplementation.getCallbackMembers() to
return Map<String, Collection<JavaElementImpl>> instead of Map<String,
JavaElementImpl>.
I have verified that this patch does not break the build. The patch can use a
thorough review to see if the changes in JavaComponentContextProvider and
OSGiPropertyInjector can be optimized to reuse the ObjectFactory.
> Second equivalently typed callback field not injected
> -----------------------------------------------------
>
> Key: TUSCANY-2311
> URL: https://issues.apache.org/jira/browse/TUSCANY-2311
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Reporter: Kevin Williams
> Assignee: Vamsavardhana Reddy
> Attachments: TUSCANY-2311.patch
>
>
> The Java CAA specification states on lines 670-671:
> 670 If a single callback has a type that is compatible with multiple declared
> callback fields, then all of them will
> 671 be set.
> The test
> org.apache.tuscany.sca.vtest.javaapi.conversation.callback.CallbackTestCase.statefulMultiBidirectional()
> demonstrates that a second annotated field with the same type is not
> injected.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.