diff options
author | kkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2008-03-11 11:00:28 +0000 |
---|---|---|
committer | kkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2008-03-11 11:00:28 +0000 |
commit | a7df6cdbf06c52b47bb6c80fde249a04fe9f4cf6 (patch) | |
tree | c8d75d9a237fbbe33ce4fe02cb958267cef46acb | |
parent | 0904c66e3cbc678e3648eeec303cd5478e70beb9 (diff) | |
download | javassist-a7df6cdbf06c52b47bb6c80fde249a04fe9f4cf6.tar.gz javassist-a7df6cdbf06c52b47bb6c80fde249a04fe9f4cf6.zip |
Use privileged block for clazz.getDeclaredMethods()
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@425 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | src/main/javassist/util/proxy/RuntimeSupport.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/util/proxy/RuntimeSupport.java b/src/main/javassist/util/proxy/RuntimeSupport.java index b2dc2246..f647fce5 100644 --- a/src/main/javassist/util/proxy/RuntimeSupport.java +++ b/src/main/javassist/util/proxy/RuntimeSupport.java @@ -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) |