celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriele Ricciardi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-297) Missing hashMapRemove in serviceRegistry_ungetServiceReference
Date Wed, 18 Nov 2015 15:01:11 GMT
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)

Mime
View raw message