openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r1038667 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java
Date Wed, 24 Nov 2010 16:13:28 GMT
Author: gerdogdu
Date: Wed Nov 24 16:13:28 2010
New Revision: 1038667

URL: http://svn.apache.org/viewvc?rev=1038667&view=rev
Log:
Spec is wrong on generic parameter order. RI TCK test will be updated by RI Team 

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=1038667&r1=1038666&r2=1038667&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 Nov 24 16:13:28 2010
@@ -353,7 +353,13 @@ public final class NotificationManager
         {
             Type beanClassArg = actualArgs[0];
             Type returnClassArg = actualArgs[1];
-                        
+            
+            if(isObserverMethod)
+            {
+                beanClassArg = actualArgs[1];
+                returnClassArg = actualArgs[0];
+            }
+            
             if(checkEventTypeParameterForExtensions(beanClass, beanClassArg) && 
                     checkEventTypeParameterForExtensions(producerOrObserverReturnClass, returnClassArg))
             {



Mime
View raw message