openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1436000 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
Date Sun, 20 Jan 2013 23:14:44 GMT
Author: arne
Date: Sun Jan 20 23:14:44 2013
New Revision: 1436000

URL: http://svn.apache.org/viewvc?rev=1436000&view=rev
Log:
OWB-344: Set interceptor methods accessible

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java?rev=1436000&r1=1435999&r2=1436000&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
Sun Jan 20 23:14:44 2013
@@ -75,15 +75,20 @@ public abstract class InterceptorBean<T>
               Collections.<Class<? extends Annotation>>emptySet());
         this.interceptionMethods = Collections.unmodifiableMap(interceptionMethods);
 
-        // extract the aroundInvokeMethod if any
+        for (Method[] methods: interceptionMethods.values())
+        {
+            for (Method method: methods)
+            {
+                if (!method.isAccessible())
+                {
+                    method.setAccessible(true);
+                }
+            }
+        }
         Method[] aroundInvokeMethods = interceptionMethods.get(InterceptionType.AROUND_INVOKE);
         if (aroundInvokeMethods != null && aroundInvokeMethods.length == 1)
         {
             aroundInvokeMethod = aroundInvokeMethods[0];
-            if (!aroundInvokeMethod.isAccessible())
-            {
-                aroundInvokeMethod.setAccessible(true);
-            }
         }
     }
 



Mime
View raw message