openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r915746 - /openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbValidator.java
Date Wed, 24 Feb 2010 10:43:43 GMT
Author: gerdogdu
Date: Wed Feb 24 10:43:43 2010
New Revision: 915746

URL: http://svn.apache.org/viewvc?rev=915746&view=rev
Log:
Update for TCK

Modified:
    openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbValidator.java

Modified: openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbValidator.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbValidator.java?rev=915746&r1=915745&r2=915746&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbValidator.java
(original)
+++ openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbValidator.java
Wed Feb 24 10:43:43 2010
@@ -151,8 +151,11 @@
                 
                 if(!found)
                 {
-                    throw new WebBeansConfigurationException("Observer method : " + method.getName()
+ " in session bean class : " + 
-                            bean.getBeanClass() + " must be business method");          
         
+                    if(!ClassUtil.isStatic(method.getModifiers()))
+                    {
+                        throw new WebBeansConfigurationException("Observer method : " + method.getName()
+ " in session bean class : " + 
+                                bean.getBeanClass() + " must be business method");      
                                     
+                    }
                 }
             }
         }



Mime
View raw message