Skip to content

[FELIX-6274] Fix possible LogService ClassCastException#27

Merged
tjwatson merged 2 commits intoapache:masterfrom
tjwatson:FELIX-6274
Jun 16, 2020
Merged

[FELIX-6274] Fix possible LogService ClassCastException#27
tjwatson merged 2 commits intoapache:masterfrom
tjwatson:FELIX-6274

Conversation

@tjwatson
Copy link
Copy Markdown
Member

@tjwatson tjwatson commented Jun 4, 2020

No description provided.

timothyjward and others added 2 commits June 4, 2020 10:21
Create a simple test which shows component bundles using different incompatible versions of the log service
can't be properly handled by Felix SCR due to a ClassCastException

Signed-off-by: Tim Ward <timothyjward@apache.org>
The OSGi R7 LogService introduced the LoggerFactory which allows SCR to
get the Logger for another bundle without having to resort to using the
extendee bundles context to get the LogService.  This allows SCR to use
the log package SCR is wired to without having to worry about the
package that the extendee is wired to for log.  It also simplifies much
with how SCR logs and it keeps the log entries for all bundles that SCR
extends flowing through the same LogService that SCR uses instead of
disjointly though all the different LogServices the extendees may be
wired to.

Change-Id: I4f1169adf089b34fb460f4b2f40607c17948c909
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
@timothyjward
Copy link
Copy Markdown
Contributor

+1

@tjwatson tjwatson merged commit 4fe02a6 into apache:master Jun 16, 2020
@tjwatson tjwatson mentioned this pull request Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants