Hi,

On Fri, 2005-08-19 at 11:35 +0200, Jeroen Frijters wrote:
> IMO, the proper way to handle this is a pattern like this:
> 
> boolean ok = false;
> try
>   {
>     ip.startProduction(PixelGrabber.this);
>     ok = true;
>   }
> finally
>   {
>     if (!ok)
>       imageComplete(ImageConsumer.ABORTED);
>   }
> 
> That way you never swallow the exception (so that it can bubble up to
> the unhandled exception handler for the thread/threadgroup.

Yes. That is better then my suggestion.

Thanks,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to