From 2d21d726ab41b3e80b3326c41e9e9bfe9523c8d6 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Mon, 14 Jun 2010 23:10:55 +0000 Subject: [PATCH] OPENJPA-1686: Support when a parameterized type has parameterized type arguments git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@954667 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/openjpa/lib/util/JavaVersions.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java b/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java index 2eb843f27..e8c8cae1e 100644 --- a/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java +++ b/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java @@ -222,7 +222,9 @@ public class JavaVersions { } static Object invokeGetter(Object target, String method) throws Exception { - return target.getClass().getMethod(method, NO_CLASS_ARGS).invoke(target, NO_ARGS); + return AccessController.doPrivileged( + J2DoPrivHelper.getDeclaredMethodAction(target.getClass(), method, NO_CLASS_ARGS)) + .invoke(target, NO_ARGS); } static boolean isParameterizedType(Object cls) {