celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerrit Binnenmars (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-344) service tracker removes wrong service
Date Mon, 01 Feb 2016 19:19:39 GMT
Gerrit Binnenmars created CELIX-344:
---------------------------------------

             Summary: service tracker removes wrong service
                 Key: CELIX-344
                 URL: https://issues.apache.org/jira/browse/CELIX-344
             Project: Celix
          Issue Type: Bug
          Components: Framework
            Reporter: Gerrit Binnenmars
             Fix For: next


In serviceTracker_track the function serviceTracker_invokeAddingService is called. If this
function returns an error the service reference is not added to the arrayList of tracked services.
This is correct! 
In serviceTracker_untrack the assumption is made that the reference is always in the arrayList
of tracked services. This is not correct!. 
E.g. the config_admin service tracker returns an error on invokeAddingService if a service
with the same PID is registered twice!

See attached simple patch to solve this



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

Mime
View raw message