How to get the class name from a static context?
Does someone know a way how to retrieve the current class name from a *static* context? Static methods belong to a class just like instance methods do, so why shouldn't it be possible to get the class name?
What I need is the same result as of "this.getClass().getName()", but just from within a static method.
Unfortunately "Thread.currentThread().getStackTrace().getClassName()" doesn't work because this returns the class the current method is implemented in, but not the class of the original call itself (which might be a subclass of the class the current method is implemented in).
Many thanx for advices