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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>