cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From evg...@apache.org
Subject svn commit: r950055 - /cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/oracle/OracleSelectTranslator.java
Date Tue, 01 Jun 2010 13:03:35 GMT
Author: evgeny
Date: Tue Jun  1 13:03:34 2010
New Revision: 950055

URL: http://svn.apache.org/viewvc?rev=950055&view=rev
Log:
CAY-1431 IllegalAccessException: Class org.apache.cayenne.dba.oracle.OracleSelectTranslator
can not access a member of class oracle.jdbc.driver.OracleStatementWrapper with modifiers
"public"

add statementSetRowPrefetch.setAccessible(true) to handle this access problem

Modified:
    cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/oracle/OracleSelectTranslator.java

Modified: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/oracle/OracleSelectTranslator.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/oracle/OracleSelectTranslator.java?rev=950055&r1=950054&r2=950055&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/oracle/OracleSelectTranslator.java
(original)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/oracle/OracleSelectTranslator.java
Tue Jun  1 13:03:34 2010
@@ -17,7 +17,6 @@
  *  under the License.
  ****************************************************************/
 
-
 package org.apache.cayenne.dba.oracle;
 
 import java.lang.reflect.Method;
@@ -84,6 +83,7 @@ public class OracleSelectTranslator exte
                 Integer.TYPE
             };
             statementSetRowPrefetch = st.getClass().getMethod("setRowPrefetch", args2);
+            statementSetRowPrefetch.setAccessible(true);
 
             useOptimizations = true;
         }



Mime
View raw message