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

Tom Watson commented on FELIX-6274:
-----------------------------------

Do you have steps to reproduce?  Can you pinpoint the code in SCR that is using 
the wrong BundleContext?

> Potential Class Space problems with multiple Log Service APIs
> -------------------------------------------------------------
>
>                 Key: FELIX-6274
>                 URL: https://issues.apache.org/jira/browse/FELIX-6274
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-2.1.20
>            Reporter: Timothy James Ward
>            Priority: Major
>             Fix For: scr-2.1.22
>
>
> The Declarative Services specification requires SCR to inject Logger 
> implementations into a DS component (if requested). In order to find a 
> suitable Log Service SCR uses its *own* BundleContext, not the context of the 
> bundle being extended. This means that if the bundle being extended has a 
> different view of the Log Service API then the injection will fail with a 
> ClassCastException.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to