tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke...@apache.org
Subject svn commit: r1139409 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckAsynchronous.java
Date Fri, 24 Jun 2011 19:03:31 GMT
Author: kevan
Date: Fri Jun 24 19:03:31 2011
New Revision: 1139409

URL: http://svn.apache.org/viewvc?rev=1139409&view=rev
Log:
ignore synthetic methods during error checking of asynchronous classes

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckAsynchronous.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckAsynchronous.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckAsynchronous.java?rev=1139409&r1=1139408&r2=1139409&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckAsynchronous.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckAsynchronous.java
Fri Jun 24 19:03:31 2011
@@ -66,7 +66,7 @@ public class CheckAsynchronous extends V
                     try {
                         Class<?> cls = loadClass(className);
                         for (Method method : cls.getDeclaredMethods()) {
-                            if (Modifier.isPublic(method.getModifiers())) {
+                            if (Modifier.isPublic(method.getModifiers()) && !method.isSynthetic())
{
                                 checkAsynchronousMethod(session, ejbClass, method, applicationExceptions);
                             } else {
                                 //warn(session, "asynchronous.methodignored", ejbClass.getName(),
method.getName());



Mime
View raw message