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
This commit is contained in:
Pinaki Poddar 2010-06-14 23:10:55 +00:00
parent 69b8e4a1fd
commit 2d21d726ab
1 changed files with 3 additions and 1 deletions

View File

@ -222,7 +222,9 @@ public class JavaVersions {
} }
static Object invokeGetter(Object target, String method) throws Exception { 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) { static boolean isParameterizedType(Object cls) {