tag:blogger.com,1999:blog-1745272011014919826.post6764113265702066274..comments2023-06-06T06:21:04.505-07:00Comments on Lazy programmer's shortcuts: How to get the calling method information in JavaSajidhttp://www.blogger.com/profile/02467645902524134663noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1745272011014919826.post-60625996697508606372011-02-18T06:38:51.538-08:002011-02-18T06:38:51.538-08:00You don't need to throw and catch your excepti...You don't need to throw and catch your exception. This works just as well:<br /><br /> final Throwable fakeException = new Throwable();<br /> final StackTraceElement[] elements = fakeException.getStackTrace();greghttps://www.blogger.com/profile/06359124809160995344noreply@blogger.com