Re: Need to know name of method I'm in.
Posted By:
David_Bates
Posted On:
Tuesday, July 29, 2003 11:46 PM
There are some dirty ways to work this out. If you're on an early version of Java, you could create an Exception, re-direct its stacktrace to a string and then use Regex. I think since 1.4.1 there has been a StackTrace object, which would be a little tidier.
Out of interest, why would you ever need this?