Nice/stdlib/nice/lang source-lines.nice,1.8,1.9
Daniel Bonniot <[email protected]> Sat, 26 Mar 2005 11:31:33 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/stdlib/nice/lang
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32267/stdlib/nice/lang
Modified Files:
source-lines.nice
Log Message:
Allow to disable beautification of stack traces, as a last resort when
beautification (or the JVM) is buggy.
Index: source-lines.nice
===================================================================
RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/source-lines.nice,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** source-lines.nice 24 Feb 2005 16:38:23 -0000 1.8
--- source-lines.nice 26 Mar 2005 11:31:30 -0000 1.9
***************
*** 21,24 ****
--- 21,26 ----
import java.io.*;
+ let boolean rawTraces = "true".equals(System.getProperty("nice.raw-traces"));
+
public <!T, R> R call__(T obj, String methodName)
{
***************
*** 44,47 ****
--- 46,55 ----
?ClassLoader loader)
{
+ if (rawTraces)
+ {
+ t.printStackTrace(w);
+ return;
+ }
+
w.println("Exception in thread \"" Thread.currentThread().getName "\" " t);
try {
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click