openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r916812 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
Date Fri, 26 Feb 2010 20:40:25 GMT
Author: covener
Date: Fri Feb 26 20:40:25 2010
New Revision: 916812

URL: http://svn.apache.org/viewvc?rev=916812&view=rev
Log:
don't short circuit too early, or we we'll miss a signature that we expected would be no-arg,
but had a non InvocationContext parameter.

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java?rev=916812&r1=916811&r2=916812&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
Fri Feb 26 20:40:25 2010
@@ -833,13 +833,6 @@
                 // Check method criterias
                 if (ClassUtil.isMethodHasParameter(method))
                 {
-                    if (!invocationContext)
-                    {
-                        /* We thought we were looking at an bean class that intercepts itself
(no invocation context),
-                         * but this is actually a definedInInterceptor Interceptor bound
via @Interceptors.
-                         */
-                        return null;   
-                    }
                     // Check method criterias
                     Class<?>[] params = ClassUtil.getMethodParameterTypes(method);
                     if (params.length != 1 || !params[0].equals(InvocationContext.class))



Mime
View raw message