You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by pr...@apache.org on 2003/04/08 20:29:12 UTC
cvs commit: avalon-excalibur/pool/src/java/org/apache/avalon/excalibur/pool DefaultPool.java
proyal 2003/04/08 11:29:12
Modified: pool/src/java/org/apache/avalon/excalibur/pool
DefaultPool.java
Log:
Warn when attempting to return an item that is not in the active list
Revision Changes Path
1.5 +7 -2 avalon-excalibur/pool/src/java/org/apache/avalon/excalibur/pool/DefaultPool.java
Index: DefaultPool.java
===================================================================
RCS file: /home/cvs/avalon-excalibur/pool/src/java/org/apache/avalon/excalibur/pool/DefaultPool.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DefaultPool.java 25 Mar 2003 21:34:02 -0000 1.4
+++ DefaultPool.java 8 Apr 2003 18:29:12 -0000 1.5
@@ -223,7 +223,12 @@
m_mutex.acquire();
try
{
- m_active.remove(obj);
+ if( !m_active.remove(obj) )
+ {
+ final String msg = "Attempted to return object that is not in active list: "
+ + obj ;
+ getLogger().warn( msg );
+ }
if( getLogger().isDebugEnabled() )
{
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org