openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1628737 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java
Date Wed, 01 Oct 2014 15:29:54 GMT
Author: rmannibucau
Date: Wed Oct  1 15:29:54 2014
New Revision: 1628737

URL: http://svn.apache.org/r1628737
Log:
raw observers should get parameterized events

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java?rev=1628737&r1=1628736&r2=1628737&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java
Wed Oct  1 15:29:54 2014
@@ -285,7 +285,9 @@ public final class NotificationManager
         {
             for (Type eventType : eventTypes)
             {
-                if (GenericsUtil.isAssignableFrom(true, false, observedType, eventType))
+                if ((ParameterizedType.class.isInstance(eventType) && Class.class.isInstance(observedType)
+                        && GenericsUtil.isAssignableFrom(true, false, observedType,
ParameterizedType.class.cast(eventType).getRawType()))
+                    || GenericsUtil.isAssignableFrom(true, false, observedType, eventType))
                 {
                     Set<ObserverMethod<?>> observerMethods = observers.get(observedType);
 



Mime
View raw message