[
https://issues.apache.org/jira/browse/FELIX-6274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17114487#comment-17114487
]
Tom Watson commented on FELIX-6274:
-----------------------------------
If SCR would use its own context then things would not blow up. That is
directly related to this issue. If we fixed that to correctly use the Logger
SCR is wired to it would fix this and avoid having to use reflection.
> 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)