Avoid printing out exception twice in printStackTrace().

This commit is contained in:
hns 2002-11-22 14:21:43 +00:00
parent 8edec30f84
commit c1338c3d67

View file

@ -143,8 +143,8 @@ public class EcmaScriptException extends Exception {
* Prints this <code>Throwable</code> and its backtrace to the * Prints this <code>Throwable</code> and its backtrace to the
* standard error stream. * standard error stream.
*/ */
public void printStackTrace() { public void printStackTrace() {
System.err.println(this); // System.err.println(this);
printStackTrace0(new PrintWriter(System.err)); printStackTrace0(new PrintWriter(System.err));
} }