Got WARNING if @Context is used to annotate a setter method -----------------------------------------------------------
Key: TUSCANY-2229 URL: https://issues.apache.org/jira/browse/TUSCANY-2229 Project: Tuscany Issue Type: Bug Components: Java SCA Core Runtime Affects Versions: Java-SCA-Next Reporter: Gilbert Kwan Priority: Minor I got following warnings when @Context is used to annotate a setter method: Apr 15, 2008 11:45:18 AM org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1 problem WARNING: No type specified on component property: BComponent/requestContext Apr 15, 2008 11:45:18 AM org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1 problem WARNING: No type specified on component property: BComponent/componentContext Apr 15, 2008 11:45:18 AM org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1 problem WARNING: No type specified on component property: BComponent/requestContext Apr 15, 2008 11:45:18 AM org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1 problem WARNING: No type specified on component property: BComponent/componentContext Implementation Class: ================= public RequestContext requestContext; public ComponentContext componentContext; @Context public void setComponentContext(ComponentContext componentContext) { this.componentContext = componentContext; } @Context public void setRequestContext(RequestContext requestContext) { this.requestContext = requestContext; } Composite: ========= <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" targetNamespace="http://java-api-tests" name="AB-Composite"> <component name="BComponent"> <implementation.java class="org.apache.tuscany.sca.vtest.javaapi.impl.BServiceImpl"/> </component> </composite> If @Context is used to annotate a class field, there is no warning. -- 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]