On 06/08/2011 10:21 AM, Stefan Bodewig wrote:
On 2011-08-06,<bode...@apache.org>  wrote:

URL: http://svn.apache.org/viewvc?rev=1154551&view=rev
Log:
never filter out the first line of the exception stack trace in junit so the 
failure message is preserved
The rationale is that since a few releases the word "more" is one that
is filtered from stack traces and a message like "expected more than"
will simply disappear from the stack trace.

Unfortunately some tools (CruiseControl, for example) only show the
stack traces and not the failure message, which is available.

This has been reported to the user mailing list.

Does anybody think the change is a bad idea?  Should it go into the
"breaks BWC" section of WHATSNEW?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org


I can't imagine that anybody would rely on the old behaviour being present. In order to do so they would first have to identify the bug and figure out the conditions under which the line would disappear, in which case they would in all likelihood have reported the problem. The entry in WHATSNEW seems fine to me, as does the FAQ entry.

I don't think the fix is a bad idea although it is certainly hackish. Bob was right that a regular expression would be a somewhat better solution, but that is way more intrusive a change and still wouldn't always do the right thing. This change seems to get the job done addressing the known problems without overengineering, so +1.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to