Getting the method name that you are currently in.
Joined: Nov 02, 2000
Is there a way for an object to get the current method name that the object is in? -Dale
By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Joined: Jul 11, 2001
In JDK 1.4+ you can use Throwable.getStackTrace()
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Sep 29, 2000
"the current method name that the object is in" What does that mean? The OBJECT is not in any method, it is on the heap. There are one or more variables out there that hold a reference to that object. Unless you are asking how to find out what method that a local variable is declared in that holds a reference to that object??? Or maybe you are asking at a particular moment in time what other object is manipulating this object in using what method??
"JavaRanch, where the deer and the Certified play" - David O'Meara