felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (FELIX-5506) OSGi's @Component parameter configurationPid is handled incorrectly
Date Fri, 08 Sep 2017 08:41:00 GMT

     [ https://issues.apache.org/jira/browse/FELIX-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carsten Ziegeler reassigned FELIX-5506:
---------------------------------------

    Assignee: Carsten Ziegeler

> OSGi's @Component parameter configurationPid is handled incorrectly
> -------------------------------------------------------------------
>
>                 Key: FELIX-5506
>                 URL: https://issues.apache.org/jira/browse/FELIX-5506
>             Project: Felix
>          Issue Type: Bug
>          Components: SCR Tooling
>    Affects Versions: scr ds annotations 1.2.8
>            Reporter: Christian Luijten
>            Assignee: Carsten Ziegeler
>             Fix For: scr ds annotations 1.2.10
>
>         Attachments: maven-scr-plugin-ds-annot-1.3.patch
>
>
> Given the following class:
> {code:java}
> package xxx;
> import org.osgi.service.component.annotations.Component;
> @Component(configurationPid = "GeneratorComponentPid")
> public class GeneratorComponent {
> }
> {code}
> When running it through the SCR Generator, it produces the following XML:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.2.0">
>     <scr:component name="xxx.GeneratorComponent" configuration-pid="[Ljava.lang.String;@76954a33">
>         <implementation class="xxx.GeneratorComponent"/>
>     </scr:component>
> </components>
> {code}
> I expected it to produce:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.2.0">
>     <scr:component name="xxx.GeneratorComponent" configuration-pid="GeneratorComponentPid">
>         <implementation class="xxx.GeneratorComponent"/>
>     </scr:component>
> </components>
> {code}
> {{org.osgi.service.component.annotations.Component}} and {{org.apache.felix.scr.annotations.Component}}
have different definitions for {{configurationPid}}, which might explain this behavior.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message