Java Mailing List Archive

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

Home » Ant Developers List »

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

Antoine Levy-Lambert

2010-01-31

Replies: Find Java Web Hosting

Author LoginPost Reply
Hello N C,

thanks for reporting this, I have committed a call to FileUtils.close in
a finally block which does the same and might also do it if an exception
happened during this reporting process.

If you are setup to build/compile ant yourself, you can update your
working copy from svn and report whether the change fixes the problem
for you.

Regards,

Antoine

N C wrote:
> --- On Sat, 1/30/10, N C <nc1500@(protected):
>
>  
>> Attached is a patch closing the BufferedWriter.
>>  
>
> I'm not sure the attachment went through...
>
> --- JUnitTestRunner.java.orig  2010-01-30 16:22:58.000000000 -0500
> +++ JUnitTestRunner.java     2010-01-30 16:23:12.000000000 -0500
> @@(protected) @@
>               pw.newLine();
>            }
>         }
> +        pw.close();
>       } catch (Exception e) {
>         return stack; // return the stack unfiltered
>       }
>
>
>    
>
>
>  


---------------------------------------------------------------------
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.