You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kevin Williams (JIRA)" <tu...@ws.apache.org> on 2008/05/09 23:03:55 UTC
[jira] Created: (TUSCANY-2311) Second equivalently typed callback
field not injected
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
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.
[jira] Assigned: (TUSCANY-2311) Second equivalently typed callback
field not injected
Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vamsavardhana Reddy reassigned TUSCANY-2311:
--------------------------------------------
Assignee: Vamsavardhana Reddy
> 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
>
> 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.
[jira] Assigned: (TUSCANY-2311) Second equivalently typed callback
field not injected
Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws reassigned TUSCANY-2311:
-----------------------------------
Assignee: Simon Laws
> 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: Simon Laws
> 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.
[jira] Updated: (TUSCANY-2311) Second equivalently typed callback
field not injected
Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
[ 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.
[jira] Updated: (TUSCANY-2311) Second equivalently typed callback
field not injected
Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vamsavardhana Reddy updated TUSCANY-2311:
-----------------------------------------
Patch Info: [Patch Available]
Assignee: (was: Vamsavardhana Reddy)
Unassigning so that a committer can pickup.
> 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
> 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.
[jira] Resolved: (TUSCANY-2311) Second equivalently typed callback
field not injected
Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws resolved TUSCANY-2311.
---------------------------------
Resolution: Fixed
Committed at r659359. Thanks for the pacht Vamsi. Looks OK to me. I could be optimized a little I guess but I can't imagine that this situation is going to arise that often. As you have made and tested the fix I've committed as is.
> 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: Simon Laws
> 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.