You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Mark Combellack (JIRA)" <tu...@ws.apache.org> on 2007/08/09 12:47:43 UTC
[jira] Created: (TUSCANY-1522) @ConversationID injection
incorrectly assumes target type is a String
@ConversationID injection incorrectly assumes target type is a String
---------------------------------------------------------------------
Key: TUSCANY-1522
URL: https://issues.apache.org/jira/browse/TUSCANY-1522
Project: Tuscany
Issue Type: Bug
Components: Java SCA Java Implementation Extension
Affects Versions: Java-SCA-Next
Environment: Was using Tuscany revision 563420
Reporter: Mark Combellack
Fix For: Java-SCA-Next
Tuscany injection of @ConversationID assumes the target field is a String. This is not the always the case according to the specification
Page 33 of the Java Common Annotations and API says:
1713 The type of this field is not necessarily String
However, the Tuscany org.apache.tuscany.sca.implementation.java.introspect.impl.ConversationIDProcessor class throws UnknownContextTypeException if the field is not a String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Closed: (TUSCANY-1522) @ConversationID injection incorrectly
assumes target type is a String
Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder closed TUSCANY-1522.
------------------------------
Resolution: Fixed
Fixed, changed as suggested.
> @ConversationID injection incorrectly assumes target type is a String
> ---------------------------------------------------------------------
>
> Key: TUSCANY-1522
> URL: https://issues.apache.org/jira/browse/TUSCANY-1522
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-Next
> Environment: Was using Tuscany revision 563420
> Reporter: Mark Combellack
> Assignee: ant elder
> Fix For: Java-SCA-Next
>
>
> Tuscany injection of @ConversationID assumes the target field is a String. This is not the always the case according to the specification
> Page 33 of the Java Common Annotations and API says:
> 1713 The type of this field is not necessarily String
> However, the Tuscany org.apache.tuscany.sca.implementation.java.introspect.impl.ConversationIDProcessor class throws UnknownContextTypeException if the field is not a String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Commented: (TUSCANY-1522) @ConversationID injection
incorrectly assumes target type is a String
Posted by "Mark Combellack (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518687 ]
Mark Combellack commented on TUSCANY-1522:
------------------------------------------
The problem is with the following code in the visitField() and visitMethod() methods of ConversationIDProcessor
Class<?> paramType = field.getType();
if (String.class.equals(paramType)) {
..... Does the injection here...
} else {
throw new UnknownContextTypeException(paramType.getName());
}
As can be seen, before doing the injection, it checks that the type of the field/method parameter is a String. If it is not, then it throws an exception.
> @ConversationID injection incorrectly assumes target type is a String
> ---------------------------------------------------------------------
>
> Key: TUSCANY-1522
> URL: https://issues.apache.org/jira/browse/TUSCANY-1522
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-Next
> Environment: Was using Tuscany revision 563420
> Reporter: Mark Combellack
> Fix For: Java-SCA-Next
>
>
> Tuscany injection of @ConversationID assumes the target field is a String. This is not the always the case according to the specification
> Page 33 of the Java Common Annotations and API says:
> 1713 The type of this field is not necessarily String
> However, the Tuscany org.apache.tuscany.sca.implementation.java.introspect.impl.ConversationIDProcessor class throws UnknownContextTypeException if the field is not a String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Assigned: (TUSCANY-1522) @ConversationID injection
incorrectly assumes target type is a String
Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder reassigned TUSCANY-1522:
----------------------------------
Assignee: ant elder
> @ConversationID injection incorrectly assumes target type is a String
> ---------------------------------------------------------------------
>
> Key: TUSCANY-1522
> URL: https://issues.apache.org/jira/browse/TUSCANY-1522
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-Next
> Environment: Was using Tuscany revision 563420
> Reporter: Mark Combellack
> Assignee: ant elder
> Fix For: Java-SCA-Next
>
>
> Tuscany injection of @ConversationID assumes the target field is a String. This is not the always the case according to the specification
> Page 33 of the Java Common Annotations and API says:
> 1713 The type of this field is not necessarily String
> However, the Tuscany org.apache.tuscany.sca.implementation.java.introspect.impl.ConversationIDProcessor class throws UnknownContextTypeException if the field is not a String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org