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

Felix Meschberger resolved FELIX-1162.
--------------------------------------

    Resolution: Fixed

Applied the patch in Rev. 778407. Please close this issue if it satisfies your 
needs. Thanks.

> Component.getReferences returns null if a component that has references is 
> not enabled.
> ---------------------------------------------------------------------------------------
>
>                 Key: FELIX-1162
>                 URL: https://issues.apache.org/jira/browse/FELIX-1162
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.0.8
>            Reporter: Agemo Cui
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: scr-1.0.10
>
>         Attachments: FELIX-1162.patch
>
>
> The implementation of method 
> {color:blue}org.apache.felix.scr.Component.getReferences{color} in class 
> {color:blue}org.apache.felix.scr.impl.AbstractComponentManager{color} doesn't 
> use {color:red}m_componentMetadata{color} but 
> {color:red}m_dependencyManagers{color} to return the service references of a 
> component, which causes a calling of {color:blue}getReferences{color} to 
> return null before "enable component" is scheduled.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to