mcconnell 2003/06/08 18:06:38
Modified: merlin/merlin-core/src/java/org/apache/avalon/merlin/kernel/impl
DefaultKernel.java
Log:
Added debug output signallying the number of active threads on termination.
Revision Changes Path
1.18 +4 -2
avalon-sandbox/merlin/merlin-core/src/java/org/apache/avalon/merlin/kernel/impl/DefaultKernel.java
Index: DefaultKernel.java
===================================================================
RCS file:
/home/cvs/avalon-sandbox/merlin/merlin-core/src/java/org/apache/avalon/merlin/kernel/impl/DefaultKernel.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- DefaultKernel.java 9 May 2003 06:39:39 -0000 1.17
+++ DefaultKernel.java 9 Jun 2003 01:06:38 -0000 1.18
@@ -388,6 +388,7 @@
*/
public void initialize() throws Exception
{
+
if( m_initialized )
{
throw new IllegalStateException( "initialization" );
@@ -662,7 +663,8 @@
if( getLogger().isInfoEnabled() )
{
- getLogger().info( "bye" );
+ int n = Thread.currentThread().activeCount();
+ getLogger().info( "bye (" + n + ")" );
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]