Bug 23144

Summary: junit filterstack should also filter out sun.reflect.* stuff
Product: Ant Reporter: Gunnlaugur Thor Briem <gthb>
Component: Optional TasksAssignee: Ant Notifications List <notifications>
Status: RESOLVED DUPLICATE    
Severity: minor Keywords: PatchAvailable
Priority: P3    
Version: 1.5.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Patch to improve stack trace filtering

Description Gunnlaugur Thor Briem 2003-09-12 17:46:40 UTC
In the <junit> task, the filterstack attribute causes lines containing
particular strings to be filtered out of stack traces in junit output,
to make the stack traces cleaner. The lines removed have to do with the
junit test invocation glue. The current implementation doesn't quite
finish the job; at least in J2SDK 1.4.2_01 on Windows, and Ant 1.5.4,
I get these lines:

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

I will attach a patch to make the stack filter remove these as well.
Comment 1 Gunnlaugur Thor Briem 2003-09-12 17:47:49 UTC
Created attachment 8190 [details]
Patch to improve stack trace filtering
Comment 2 Gunnlaugur Thor Briem 2003-09-12 17:56:38 UTC
(The patch is against the CVS head, not against the 1.5 branch or any tag)
Comment 3 J.M. (Martijn) Kruithof 2003-09-12 19:20:01 UTC

*** This bug has been marked as a duplicate of 22758 ***