openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fayw...@apache.org
Subject svn commit: r813930 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Date Fri, 11 Sep 2009 17:14:52 GMT
Author: faywang
Date: Fri Sep 11 17:14:52 2009
New Revision: 813930

URL: http://svn.apache.org/viewvc?rev=813930&view=rev
Log:
OPENJPA-1285: fix InitializerError in JDBCStoreManager$RefCountConnection.prepareStatement(JDBCStoreManager.java:1543)

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java?rev=813930&r1=813929&r2=813930&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Fri Sep 11 17:14:52 2009
@@ -1524,12 +1524,8 @@
 
         protected Statement createStatement(int rsType, int rsConcur,
             boolean wrap) throws SQLException {
-            return ConcreteClassGenerator.newInstance
-                (cancelStatementImpl,
-                    JDBCStoreManager.class, JDBCStoreManager.this,
-                    Statement.class,
-                        super.createStatement(rsType, rsConcur, false),
-                    Connection.class, RefCountConnection.this);
+            return ConcreteClassGenerator.newInstance(cancelStatementImpl, JDBCStoreManager.this,
+                    super.createStatement(rsType, rsConcur, false), RefCountConnection.this);
         }
 
         protected PreparedStatement prepareStatement(String sql, boolean wrap)
@@ -1542,10 +1538,8 @@
             int rsConcur, boolean wrap) throws SQLException {
             return ConcreteClassGenerator.newInstance
                 (cancelPreparedStatementImpl,
-                    JDBCStoreManager.class, JDBCStoreManager.this,
-                    PreparedStatement.class,
-                        super.prepareStatement(sql, rsType, rsConcur, false),
-                    Connection.class, RefCountConnection.this);
+                    JDBCStoreManager.this, super.prepareStatement(sql, rsType, rsConcur,
false),
+                    RefCountConnection.this);
         }
     }
 



Mime
View raw message