Philippe Desrosiers wrote:Yeah, the closest I came was throwing an exception, then examining the StackTraceElement array for the throwing class, but even that gives the Superclass...
Oh well.
I can't think of a way to do it 'automatically' but you can do it with some method calls:
Add some error checking to make sure the class was set and you at least have a starting point. Here would be an example of when it might be used: