[ https://issues.apache.org/jira/browse/FELIX-4053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier resolved FELIX-4053. -------------------------------------- Resolution: Fixed Assignee: Clement Escoffier Fixed in trunk. The @StaticServiceProperty annotation is now set to be only using in complex type. > Avoid @StaticServiceProperty to be used on classes > -------------------------------------------------- > > Key: FELIX-4053 > URL: https://issues.apache.org/jira/browse/FELIX-4053 > Project: Felix > Issue Type: Bug > Components: iPOJO > Affects Versions: ipojo-runtime-1.8.6 > Reporter: Clement Escoffier > Assignee: Clement Escoffier > Fix For: ipojo-runtime-1.10 > > > The @StaticServiceProperty annotation is made to be used like this: > @Component > @Provides(properties = { > @StaticServiceProperty(name="property", value="value", type = > "java.lang.String") > }) > @Instantiate(name="instanceWithProperties") > public class MyComponent { > //... > } > It cannot be used on classes directory (as it's attached to a provided > service). To avoid this mistake, we should set the `target` of the annotation > to {}. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira