[ 
https://issues.apache.org/jira/browse/FELIX-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760094#comment-13760094
 ] 

Guillaume Sauthier commented on FELIX-4218:
-------------------------------------------

Here is the sample
{code}
@Component(propagation=true)
@Instantiate
@Provides(specifications=Probe.class)
public class Probe implements Runnable  {

    @Property(name="smarthing-uri", mandatory=true)
    @ServiceProperty(name="smarthing-uri", mandatory=true)
    private String smartThingUri;

    @Property(name="interval", mandatory=true)
    @ServiceProperty(name="interval", mandatory=true)
    private long interval;
}
{code}
                
> NPE with field annotated with both @Property and @ServiceProperty
> -----------------------------------------------------------------
>
>                 Key: FELIX-4218
>                 URL: https://issues.apache.org/jira/browse/FELIX-4218
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-runtime-1.10.1
>            Reporter: Guillaume Sauthier
>            Assignee: Clement Escoffier
>             Fix For: ipojo-runtime-1.10.2
>
>
> I know this seems wrong to have a field annotated like this:
> {code:java}
> @Property(name="toto")
> @ServiceProperty(name="toto")
> private String toto;
> {code}
> Anyway, I've seen this...
> And when I try to see instance details using the gogo command 'instance', I 
> got a NPE (sorry don't have the stacktrace at hand)

--
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

Reply via email to