aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.ch>2006-04-17 23:18:23 +0200
committerAndreas Tobler <andreast@gcc.gnu.org>2006-04-17 23:18:23 +0200
commitc60fe329d5e7273d8d7bef718244f72276124ded (patch)
treebaf7feafb6e746c7c06259d03f523dc4da1f6fb0
parent778f6a08fd73961e8777d4cc5b01da7051f0b7bd (diff)
downloadgcc-c60fe329d5e7273d8d7bef718244f72276124ded.zip
gcc-c60fe329d5e7273d8d7bef718244f72276124ded.tar.gz
gcc-c60fe329d5e7273d8d7bef718244f72276124ded.tar.bz2
stringconst2.java: Print a stack trace in case of failure.
2006-04-17 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.lang/stringconst2.java: Print a stack trace in case of failure. From-SVN: r113011
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/testsuite/libjava.lang/stringconst2.java3
2 files changed, 7 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 0622530..fbbe9e2 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-17 Andreas Tobler <a.tobler@schweiz.ch>
+
+ * testsuite/libjava.lang/stringconst2.java: Print a stack trace in case
+ of failure.
+
2006-04-13 Tom Tromey <tromey@redhat.com>
PR libgcj/26522:
diff --git a/libjava/testsuite/libjava.lang/stringconst2.java b/libjava/testsuite/libjava.lang/stringconst2.java
index f33ee9c..c64bba4d 100644
--- a/libjava/testsuite/libjava.lang/stringconst2.java
+++ b/libjava/testsuite/libjava.lang/stringconst2.java
@@ -14,8 +14,9 @@ public class stringconst2
Field f = k.getField ("q");
System.out.println (f.get (null));
}
- catch (Throwable _)
+ catch (Throwable t)
{
+ t.printStackTrace();
}
}
}