commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r753340 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java
Date Fri, 13 Mar 2009 18:41:35 GMT
Author: markt
Date: Fri Mar 13 18:41:33 2009
New Revision: 753340

URL: http://svn.apache.org/viewvc?rev=753340&view=rev
Log:
Fix DBCP-284. Use getter rather than access field directly.

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

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java?rev=753340&r1=753339&r2=753340&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java
Fri Mar 13 18:41:33 2009
@@ -339,7 +339,7 @@
 
         // DBCP-215
         // Trick to make sure that initialSize connections are created
-        if (dataSource.initialSize > 0) {
+        if (dataSource.getInitialSize() > 0) {
             dataSource.getLogWriter();
         }
 



Mime
View raw message