[EMAIL PROTECTED] writes:

> TurbineException closes the System.err stream after calling printStackTrace.
> 
> -- Ilkka
> 
> >   public void printStackTrace()
> >    {
> >        synchronized(System.err) 
> >        {
> >            printStackTrace(System.err);
> >        }
> >    }
> > 
> >    public void printStackTrace(PrintStream out) 
> >    {
> >        synchronized(out) 
> >        {
> >            PrintWriter pw=new PrintWriter(out, false);
> >            printStackTrace(pw);
> >            // flush the PrintWriter before it's GCed
> >            pw.flush();
> >            pw.close();
> >        }
> >    }

Thanks, nice catch.  We like TurbineException around these parts, and
would like it to be as friendly as possible.  ;)
-- 

Daniel Rall <[EMAIL PROTECTED]>


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to