commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r746809 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java
Date Sun, 22 Feb 2009 20:09:17 GMT
Author: markt
Date: Sun Feb 22 20:09:16 2009
New Revision: 746809

URL: http://svn.apache.org/viewvc?rev=746809&view=rev
Log:
Revert previous commit for now. It appears to break driver registration :(

Modified:
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java?rev=746809&r1=746808&r2=746809&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java
Sun Feb 22 20:09:16 2009
@@ -294,7 +294,7 @@
         _defaultCatalog = defaultCatalog;
     }
 
-    public Object makeObject() throws Exception {
+    synchronized public Object makeObject() throws Exception {
         Connection conn = _connFactory.createConnection();
         if (conn == null) {
             throw new IllegalStateException("Connection factory returned null from createConnection");



Mime
View raw message