-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
WELD-1307 is removing the bundle from managed map and then the stop task is checking if the bundle is in the map (in the following lines). stop management is then never executed and stop events are not sent as expected.
This can be easily reproduced with the user guide http://docs.jboss.org/weld/reference/1.2.0.Beta1/weld-osgi/user-guide/html/ch02.html#d0e306 example : "Goodbye World!" is never printed
at org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.stopManagement(IntegrationActivator.java:241)
if (future == null) { final CDIContainer container = managed.remove(bundle.getBundleId());
but the stop events are fired if
if (started.get() && managed.containsKey(bundle.getBundleId())) {