[
https://issues.apache.org/jira/browse/FELIX-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760079#comment-13760079
]
Clement Escoffier commented on FELIX-4218:
------------------------------------------
Hi,
I can't reproduce the issue.
I've tried in integration-tests and in the Felix Gogo shell.
My component is:
{code}
@Component
@Provides
@Instantiate
public class CheckProviderWithPropertyAndServiceProperty implements
CheckService {
@Property(name="toto")
@ServiceProperty(name="toto")
private String toto;
@Override
public boolean check() {
return toto != null;
}
@Override
public Properties getProps() {
Properties props = new Properties();
props.put("toto", toto);
return props;
}
}
{code}
In the integration-test I retrieve the architecture and check the toto value.
In the Felix shell, I dump the instance architecture
Can you give me more details ?
> 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