From: kkhan Date: Tue, 11 Mar 2008 11:00:28 +0000 (+0000) Subject: Use privileged block for clazz.getDeclaredMethods() X-Git-Tag: rel_3_17_1_ga~218 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a7df6cdbf06c52b47bb6c80fde249a04fe9f4cf6;p=javassist.git Use privileged block for clazz.getDeclaredMethods() git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@425 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- 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)