This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] committed, stringconst2 show stacktrace


Hello,

I'll commit this patch shortly. It shall help in case of a failure and print the stack trace instead of silently go through.
Obvious ok'ed by Tom T.


Andreas

2006-04-17 Andreas Tobler <a.tobler@schweiz.ch>

	* testsuite/libjava.lang/stringconst2.java: Print a stack trace in case
	of failure.

Index: testsuite/libjava.lang/stringconst2.java
===================================================================
--- testsuite/libjava.lang/stringconst2.java    (revision 113003)
+++ testsuite/libjava.lang/stringconst2.java    (working copy)
@@ -14,8 +14,9 @@
        Field f = k.getField ("q");
        System.out.println (f.get (null));
       }
-    catch (Throwable _)
+    catch (Throwable t)
       {
+       t.printStackTrace();
       }
   }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]