Uploaded image for project: 'Avalon Merlin Runtime'
  1. Avalon Merlin Runtime
  2. RUNTIME-53

DefaultKernet implementation forgets to pass through STARTING state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.4.0
    • None
    • CORE
    • None

    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

      Attachments

        Activity

          People

            mcconnell Stephen McConnell
            carelparadis Carel Paradis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: