[logback-dev] I don't understand ClassPackagingDataCalculator :p

Ceki Gulcu listid at qos.ch
Tue Sep 23 22:37:26 CEST 2008

Hi Joern,

Only the name of the class is available in StackTraceElement, not the actual 
class.  The Class.forName(String className) method is not guaranteed to get the 
correct results, especially if the class in question can be found in multiple 
classloaders. Sun's internal API is used to determine with *certainty* the class 
which corresponds to the class in the stack frame.

Joern Huxhorn wrote:
> Hi Ceki.
> I was just checking out ClassPackagingDataCalculator because I wanted to
> see what the warning


> Regards, Joern.

Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.

More information about the logback-dev mailing list