commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp PoolableConnection.java
Date Tue, 12 Aug 2003 00:10:00 GMT
dirkv       2003/08/11 17:10:00

  Modified:    dbcp/src/java/org/apache/commons/dbcp
                        PoolableConnection.java
  Log:
  Bugzilla Bug 16987:
    race condition in PoolableConnection.close()
  
  Revision  Changes    Path
  1.9       +5 -5      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnection.java
  
  Index: PoolableConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnection.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PoolableConnection.java	11 Aug 2003 16:01:25 -0000	1.8
  +++ PoolableConnection.java	12 Aug 2003 00:10:00 -0000	1.9
  @@ -106,7 +106,7 @@
       /**
        * Returns me to my pool.
        */
  -    public void close() throws SQLException {
  +     public synchronized void close() throws SQLException {
           if(isClosed()) {
               throw new SQLException("Already closed.");
           } else {
  
  
  

Mime
View raw message