[Nice-commit] Nice/stdlib/nice/lang source-lines.nice,1.8,1.9
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-03-26 11:31:44
|
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 { |