2004-07-25から1日間の記事一覧
メモメモ。Javaでコールスタックを走査するには次のような感じ。ただしJDK1.4以上。呼び出し元のインスタンスは取れないのかあ。 Throwable t = new Throwable(); StackTraceElement[] elements = t.getStackTrace(); for (int i=0; i
メモメモ。Javaでコールスタックを走査するには次のような感じ。ただしJDK1.4以上。呼び出し元のインスタンスは取れないのかあ。 Throwable t = new Throwable(); StackTraceElement[] elements = t.getStackTrace(); for (int i=0; i