петък, 31 октомври 2008 г.

Смях за финансисти :)

Get class and method name of calling class


new Throwable().fillInStackTrace().getStackTrace()[1].getClassName()
new Throwable().fillInStackTrace().getStackTrace()[1].getMethodName()
new Throwable().fillInStackTrace().getStackTrace()[1].getLineNumber()