[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]