As part of the Logging APIs, the Logger class needs to be able
to infer the caller for certain convenience methods.
Right now it implements this by creating an Exception(), printing
the backtrace and searching through the backtrace.
This is both inefficient and non-portable, as not all VMs may have
the same backtarce format.
graham.hamilton@Eng 2001-05-28
- duplicates
-
JDK-4450015 Logger.inferCaller() should use Throwable.getStackTrace()
-
- Closed
-