avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@avalon.apache.org
Subject [jira] Created: (RUNTIME-53) DefaultKernet implementation forgets to pass through STARTING state
Date Sun, 15 Aug 2004 20:53:20 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/RUNTIME-53

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: RUNTIME-53
    Summary: DefaultKernet implementation forgets to pass through STARTING state
       Type: Bug

     Status: Open
   Priority: Major

    Project: Merlin Runtime
 Components: 
             CORE
   Versions:
             3.4.0

   Assignee: Stephen McConnell
   Reporter: Carel Paradis

    Created: Sun, 15 Aug 2004 1:51 PM
    Updated: Sun, 15 Aug 2004 1:51 PM

Description:
In the startup method, the DefaultKernel implementation must call setState(STARTING) just
after verifying if the kernel is startable. Otherwise, kernel event listeners will never be
aware that the kernel is starting.

The following file must be updated: trunk\runtime\merlin\impl\src\java\org\apache\avalon\merlin\impl\DefaultKernel.java

The following patch must be applied:

// -----BEGIN PATCH
Index: DefaultKernel.java
===================================================================
--- DefaultKernel.java	(revision 36413)
+++ DefaultKernel.java	(working copy)
@@ -172,6 +172,9 @@
         synchronized( m_state )
         {
             if( !isStartable() ) return;
+            
+            setState( STARTING );
+            
             if( getLogger().isDebugEnabled() )
             {
                 getLogger().debug( "application assembly" );

// -----END PATCH


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message