You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Gabriele Ricciardi (JIRA)" <ji...@apache.org> on 2015/11/18 16:01:11 UTC

[jira] [Created] (CELIX-297) Missing hashMapRemove in serviceRegistry_ungetServiceReference

Gabriele Ricciardi created CELIX-297:
----------------------------------------

             Summary: Missing hashMapRemove in serviceRegistry_ungetServiceReference
                 Key: CELIX-297
                 URL: https://issues.apache.org/jira/browse/CELIX-297
             Project: Celix
          Issue Type: Bug
            Reporter: Gabriele Ricciardi
         Attachments: service_registry.patch

In case the service_registration is invalidate, the related service_reference is not removed from the hashMap in serviceRegistry_ungetServiceReference, even if the service_reference counter is 0.
This leads to unconsistency (and possible crashes) during the stopBundle phase.

Attached a patch that fix the serviceRegistry_ungetServiceReference (and also a related unit test for RSA_DFI)



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