Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Developers List »

[PATCH] JUnitTestRunner.filterStack(String) does not flush BufferedWriter

N C

2010-01-30

Replies: Find Java Web Hosting

Author LoginPost Reply
In Revision 793462, a BufferedWriter was added to JUnitTestRunner.filterStack(String). However, the BufferedWriter was not flushed before returning the underlying StringWriter's contents. This may exclude all or part of the filtered stack trace from the returned String.

Attached is a patch closing the BufferedWriter. The single-line patch is untested, but is simple enough that it should work.


   

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@(protected)
For additional commands, e-mail: dev-help@(protected)
©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.