felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r552807 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java
Date Tue, 03 Jul 2007 12:24:46 GMT
Author: rickhall
Date: Tue Jul  3 05:24:45 2007
New Revision: 552807

URL: http://svn.apache.org/viewvc?view=rev&rev=552807
Log:
Fixed a bug when updating listeners that would fail when a listener
implemented multiple listener interfaces.

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java?view=diff&rev=552807&r1=552806&r2=552807
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java
(original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/util/EventDispatcher.java
Tue Jul  3 05:24:45 2007
@@ -454,15 +454,15 @@
                     (listeners[i + LISTENER_CLASS_OFFSET] == clazz) &&
                     (listeners[i + LISTENER_OBJECT_OFFSET] == l))
                 {
-                    if (l instanceof FrameworkListener)
+                    if (clazz == FrameworkListener.class)
                     {
                         // The spec says to ignore this case.
                     }
-                    else if (l instanceof BundleListener)
+                    else if (clazz == BundleListener.class)
                     {
                         // The spec says to ignore this case.
                     }
-                    else if (l instanceof ServiceListener)
+                    else if (clazz == ServiceListener.class)
                     {
                         // The spec says to update the filter in this case.
                         listeners[i + LISTENER_FILTER_OFFSET] = filter;



Mime
View raw message