Implemented a simple but working implementation of the java logging API,

complete with a test class
This commit is contained in:
Eric Scharff
2007-09-26 14:46:21 -06:00
parent 749ae86d49
commit bb4a7c21c7
6 changed files with 248 additions and 0 deletions

View File

@ -63,6 +63,10 @@ public class Throwable {
return (StackTraceElement[]) trace;
}
public StackTraceElement[] getStackTrace() {
return resolveTrace();
}
public void printStackTrace(PrintStream out) {
StringBuilder sb = new StringBuilder();
printStackTrace(sb, System.getProperty("line.separator"));