From a7df6cdbf06c52b47bb6c80fde249a04fe9f4cf6 Mon Sep 17 00:00:00 2001 From: kkhan Date: Tue, 11 Mar 2008 11:00:28 +0000 Subject: [PATCH] Use privileged block for clazz.getDeclaredMethods() git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@425 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/util/proxy/RuntimeSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5