From c534d29cb7b6163e1a7a8054ff7774f48a527a76 Mon Sep 17 00:00:00 2001 From: Fay Wang Date: Fri, 11 Sep 2009 17:14:52 +0000 Subject: [PATCH] OPENJPA-1285: fix InitializerError in JDBCStoreManager$RefCountConnection.prepareStatement(JDBCStoreManager.java:1543) git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813930 13f79535-47bb-0310-9956-ffa450edef68 --- .../openjpa/jdbc/kernel/JDBCStoreManager.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java index 13dd77333..61a3b2f06 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java @@ -1524,12 +1524,8 @@ public class JDBCStoreManager 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 @@ public class JDBCStoreManager 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); } }