static A printStackTrace(A e) { // we go to system.out now - system.err is nonsense if (e != null) print(getStackTrace(e)); ret e; } static void printStackTrace() { printStackTrace(new Throwable()); } static void printStackTrace(S msg) { printStackTrace(new Throwable(msg)); } static void printStackTrace(S msg, Throwable e) { printStackTrace(new Throwable(msg, e)); }