]> source.dussan.org Git - javassist.git/commitdiff
Use privileged block for clazz.getDeclaredMethods()
authorkkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 11 Mar 2008 11:00:28 +0000 (11:00 +0000)
committerkkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 11 Mar 2008 11:00:28 +0000 (11:00 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@425 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/util/proxy/RuntimeSupport.java

index b2dc2246ee3593c34439a412dca5058bb126a8e3..f647fce5b15b61bf58ca6462abad0547085da05b 100644 (file)
@@ -103,7 +103,7 @@ public class RuntimeSupport {
     }
 
     private static Method findMethod2(Class clazz, String name, String desc) {
-        Method[] methods = clazz.getDeclaredMethods();
+        Method[] methods = SecurityActions.getDeclaredMethods(clazz);
         int n = methods.length;
         for (int i = 0; i < n; i++)
             if (methods[i].getName().equals(name)