From c60fe329d5e7273d8d7bef718244f72276124ded Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Mon, 17 Apr 2006 23:18:23 +0200 Subject: [PATCH] stringconst2.java: Print a stack trace in case of failure. 2006-04-17 Andreas Tobler * testsuite/libjava.lang/stringconst2.java: Print a stack trace in case of failure. From-SVN: r113011 --- libjava/ChangeLog | 5 +++++ libjava/testsuite/libjava.lang/stringconst2.java | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0622530d440..fbbe9e2c20f 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2006-04-17 Andreas Tobler + + * testsuite/libjava.lang/stringconst2.java: Print a stack trace in case + of failure. + 2006-04-13 Tom Tromey PR libgcj/26522: diff --git a/libjava/testsuite/libjava.lang/stringconst2.java b/libjava/testsuite/libjava.lang/stringconst2.java index f33ee9c5b3e..c64bba4dd46 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(); } } }