openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yingw...@apache.org
Subject svn commit: r936450 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
Date Wed, 21 Apr 2010 19:13:32 GMT
Author: yingwang
Date: Wed Apr 21 19:13:32 2010
New Revision: 936450

URL: http://svn.apache.org/viewvc?rev=936450&view=rev
Log:
[OWB-312] Hope this will be the last one.

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
  (contents, props changed)

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java?rev=936450&r1=936449&r2=936450&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
Wed Apr 21 19:13:32 2010
@@ -44,6 +44,7 @@ import org.apache.webbeans.intercept.web
 import org.apache.webbeans.logger.WebBeansLogger;
 import org.apache.webbeans.proxy.JavassistProxyFactory;
 import org.apache.webbeans.util.ClassUtil;
+import org.apache.webbeans.util.SecurityUtil;
 import org.apache.webbeans.util.WebBeansUtil;
 
 /**
@@ -229,7 +230,7 @@ public abstract class InterceptorHandler
                                 WebBeansDecoratorInterceptor lastInterceptor = new WebBeansDecoratorInterceptor(delegateHandler,
instance);
                                 InterceptorDataImpl data = new InterceptorDataImpl(true,lastInterceptor);
                                 data.setDefinedInInterceptorClass(true);
-                                data.setAroundInvoke(lastInterceptor.getClass().getDeclaredMethods()[0]);
+                                data.setAroundInvoke(SecurityUtil.doPrivilegedGetDeclaredMethods(lastInterceptor.getClass())[0]);
                                 //Add to last
                                 filteredInterceptorStack.add(data);
                             }
@@ -258,14 +259,14 @@ public abstract class InterceptorHandler
             //If not interceptor or decorator calls
             //Do normal calling
             boolean access = method.isAccessible();
-            method.setAccessible(true);
+            SecurityUtil.doPrivilegedSetAccessible(method, true);
             try
             {
                 result = method.invoke(instance, arguments);
                 
             }finally
             {
-                method.setAccessible(access);
+                SecurityUtil.doPrivilegedSetAccessible(method, access);
             }
             
         }

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
------------------------------------------------------------------------------
--- svn:mergeinfo (added)
+++ svn:mergeinfo Wed Apr 21 19:13:32 2010
@@ -0,0 +1 @@
+/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java:936384



Mime
View raw message