This discussion is archived
0 Replies Latest reply: Jan 20, 2009 2:49 AM by 843810 RSS

Is it possible to get the caller object in a function call hierarchy ?

843810 Newbie
Currently Being Moderated
Hi,

I have a problem in hand for adding a new functionality to an existing code with MINIMAL code change. For this I need to get some extra information in a function call from its caller. And for this I do not want to change the signature of the method, as it requires a lot of code change. So I need to have a programming facility by which I can get the object from which the function was invoked. Some thing like "{code}this.CALLEROBJECT{code}".

Please let me know whether we can achieve this in JAVA. I wonder if such a facility exists in any programming language...

Thanks in advance.

Regards
Joby