You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2015/12/08 14:58:10 UTC

[jira] [Created] (SLING-5366) Wrong handling of bundle/service ref object in SlingLogger

Carsten Ziegeler created SLING-5366:
---------------------------------------

             Summary: Wrong handling of bundle/service ref object in SlingLogger
                 Key: SLING-5366
                 URL: https://issues.apache.org/jira/browse/SLING-5366
             Project: Sling
          Issue Type: Bug
          Components: Launchpad
    Affects Versions: Launchpad Base 2.6.6, Launchpad Base 2.6.8
            Reporter: Carsten Ziegeler
             Fix For: Launchpad Base 2.6.10


The MainDelegate embeds a SlingLogger which is an extension of the Apache Felix Logger. The doLog method is overriden taking an optional bundle and an optional service reference.
The method is not checking whether bundle is null - in addition if the service reference is null, the bundle argument is null.
bundle and service ref are actually mutual exclusive: either both are null, or one of them - but they can't both be set.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)