On Thu, 03 May 2007 00:21:07 +0200,
<> wrote:
> Hi all,
> Does anyone can give me some idea about how to retrieve the function
> name in Java?
> (similarly __FUNCTION__ in C/C++)
>
> Thanks
> B.
>
__FUNCTION__ is not standard C/C++, and I would find any code that uses it
very suspect.
Similarly, you may want to try to find a different approach for your Java
problem. Do you really need to know the function name?
You may want to have a look at the reflection API, but only after making
sure there is no plausible alternative design.
There's a good reflection tutorial at
http://java.sun.com/docs/books/tutor...ect/index.html
Ben
--
Using Opera's revolutionary e-mail client:
http://www.opera.com/mail/