Now dispatches to AllServiceListeners correctly too (FELIX-5). Still need
to implemented the remaining AllServiceListener functionality (FELIXi-32)


git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@425000 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java
index ddcc34c..f853a9d 100644
--- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java
+++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java
@@ -685,7 +685,8 @@
                 // Dispatch according to the filter.
                 if ((filter == null) || filter.match(((ServiceEvent) event).getServiceReference()))
                 {
-                    if (Felix.isServiceAssignable(bundle, ((ServiceEvent) event).getServiceReference()))
+                    if ((l instanceof AllServiceListener) ||
+                        Felix.isServiceAssignable(bundle, ((ServiceEvent) event).getServiceReference()))
                     {
                         if (System.getSecurityManager() != null)
                         {