openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r954667 - /openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java
Date Mon, 14 Jun 2010 23:10:55 GMT
Author: ppoddar
Date: Mon Jun 14 23:10:55 2010
New Revision: 954667

URL: http://svn.apache.org/viewvc?rev=954667&view=rev
Log:
OPENJPA-1686: Support when a parameterized type has parameterized type arguments

Modified:
    openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java

Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java?rev=954667&r1=954666&r2=954667&view=diff
==============================================================================
--- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java
(original)
+++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java
Mon Jun 14 23:10:55 2010
@@ -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) {



Mime
View raw message