diff options
author | Andreas Tobler <a.tobler@schweiz.ch> | 2006-04-17 23:18:23 +0200 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2006-04-17 23:18:23 +0200 |
commit | c60fe329d5e7273d8d7bef718244f72276124ded (patch) | |
tree | baf7feafb6e746c7c06259d03f523dc4da1f6fb0 /libjava/testsuite/libjava.lang | |
parent | 778f6a08fd73961e8777d4cc5b01da7051f0b7bd (diff) | |
download | gcc-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
Diffstat (limited to 'libjava/testsuite/libjava.lang')
-rw-r--r-- | libjava/testsuite/libjava.lang/stringconst2.java | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } } } |