I don't think it should matter.  If the Exception is an instanceof
RuntimeException, it should be handled appropriately without needing to
be cast as such here.

On Mon, 2002-05-13 at 12:16, Eric Dobbs wrote:
> Wouldn't it be worth adding a separate branch
> for RuntimeException like this:
> 
>                  if (t instanceof RuntimeException)
>                  {
>                      throw (RuntimeException)t;
>                  }
>                  elseif (t instanceof Exception)
>                  ...
> 
> -Eric
> 
> On Thursday, May 9, 2002, at 03:46  PM, [EMAIL PROTECTED] wrote:
> 
> >   +            Throwable t = ite.getTargetException();
> >   +            if (t instanceof Exception)
> >   +            {
> >   +                throw (Exception)t;
> >   +            }
> >   +            else if (t instanceof java.lang.Error)
> >   +            {
> >   +                throw (java.lang.Error)t;
> >   +            }
> >   +            else
> >   +            {
> >   +                // this should not happen, but something could throw
> >   +                // an instance of Throwable
> >   +                throw new TurbineException(t);
> >   +            }
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



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

Reply via email to