From bff90f2861b2ffa126f799b3c76aecb36ec45b4c Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 17 Mar 2005 08:10:49 +0000 Subject: [PATCH] swallow sun.reflect lines when filtertrace is true, PR 22758, Submitted by Emmanuel Bourg git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277999 13f79535-47bb-0310-9956-ffa450edef68 --- CONTRIBUTORS | 1 + WHATSNEW | 5 +++++ docs/manual/OptionalTasks/junit.html | 1 + .../tools/ant/taskdefs/optional/junit/JUnitTestRunner.java | 3 ++- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 9fb7a73a9..759c50086 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -58,6 +58,7 @@ Don Ferguson Don Jeffery Drew Sudell Eli Tucker +Emmanuel Bourg Eric Pugh Erik Hatcher Erik Langenbach diff --git a/WHATSNEW b/WHATSNEW index 3906d21b6..f1de02aa0 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -151,6 +151,11 @@ Changes that could break older environments: handled to nested projects. Bugzilla report 25777 +* with filtertrace="true" will now also swallow lines for the + sun.reflect package. If you need to see them in your stack trace, + you must set filtertrace to false. + Bugzilla Report 22758 + Other changes: -------------- diff --git a/docs/manual/OptionalTasks/junit.html b/docs/manual/OptionalTasks/junit.html index 90b94222d..3f2e26c85 100644 --- a/docs/manual/OptionalTasks/junit.html +++ b/docs/manual/OptionalTasks/junit.html @@ -207,6 +207,7 @@ that begin with the following string patterns:
    "junit.awtui.TestRunner"
    "junit.textui.TestRunner"
    "java.lang.reflect.Method.invoke("
+   "sun.reflect."
    "org.apache.tools.ant."

Nested Elements

diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java index 13fbc399b..1c022a971 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2004 The Apache Software Foundation + * Copyright 2000-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -113,6 +113,7 @@ public class JUnitTestRunner implements TestListener { "junit.awtui.TestRunner", "junit.textui.TestRunner", "java.lang.reflect.Method.invoke(", + "sun.reflect.", "org.apache.tools.ant." };