Hi,

according to some stack traces hasComponent() is calling lookup() and
release(). There seems to be a lot of unnecessary work done. And a later
lookup() (e.g. if hasComponent() returned true) seems to return a disposed
component.
This gives serious problems to my application. And it disagrees with the
source code (both from the Excalibur 4.1 distribution:

    public boolean hasComponent( final String role )
    {
        if ( ! m_initialized ) return false;
        if ( m_disposed ) return false;

        boolean exists = m_componentHandlers.containsKey( role );

        if ( ! exists  && null != m_parentManager )
        {
            exists = m_parentManager.hasComponent( role );
        }

        return exists;
    }

I would like to know wether the class file or the source code are more up to
date and of course I would like to have them both to fit together.

I would be thankful if somebody could help me.


Regards,

Ole
-- 
Ole Bulbuk              Tel.:   0331/74759/60
Ernst Basler + Partner  Fax:    0331/74759/90
Tuchmacherstr. 47       E-Mail: mailto:[EMAIL PROTECTED]
14482 Potsdam           WWW:    http://www.ebp.de

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to