avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@fztig938.bank.dresdner.net>
Subject Re: ECM & Serviceable
Date Tue, 16 Jul 2002 12:39:05 GMT
On Sat, Jul 13, 2002 at 07:54:42AM +1000, Peter Donald wrote:
> At 04:36 PM 7/12/2002 +0200, you wrote:
> >
> >        Do you think it's worth adding a catch for ClassCastException ?
> >
> >try
> >{
> >    final Object component = m_realManager.lookup( role );
> >    addUnreleased( component );
> >    return component;
> >}
> >catch( ClassCastException e )
> >{
> >    throw new ServiceException(
> >        e.getRole(), "Servicables must implement Component", e
> >    );
> >}
> 
> No idea. I guess we could just in case ')

	Ok, I just checked in an extra catch. Let me know if you see any
	problems with the change.
	
	Cheers,
	
	Marcus

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   ManageSoft GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'
          &&&&.
    &&&&&&&:

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


Mime
View raw message