commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r737478 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/AbandonedTrace.java
Date Sun, 25 Jan 2009 02:48:43 GMT
Author: psteitz
Date: Sun Jan 25 02:48:42 2009
New Revision: 737478

URL: http://svn.apache.org/viewvc?rev=737478&view=rev
Log:
Addressed thread safety issues.  JIRA: DBCP-271.

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

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/AbandonedTrace.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/AbandonedTrace.java?rev=737478&r1=737477&r2=737478&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/AbandonedTrace.java (original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/AbandonedTrace.java Sun Jan
25 02:48:42 2009
@@ -44,15 +44,15 @@
     /** DBCP AbandonedConfig */
     private AbandonedConfig config = null;
     /**  Parent object */
-    private AbandonedTrace parent;
+    private volatile AbandonedTrace parent;
     /** A stack trace of the code that created me (if in debug mode) */
-    private Exception createdBy;
+    private volatile Exception createdBy;
     /** Time created */
-    private long createdTime;
+    private volatile long createdTime;
     /** A list of objects created by children of this object */
-    private List trace = new ArrayList();
+    private final List trace = new ArrayList();
     /** Last time this connection was used */
-    private long lastUsed = 0;
+    private volatile long lastUsed = 0;
 
     /**
      * Create a new AbandonedTrace without config and



Mime
View raw message