G
Gilles A.
Hi all,
Does anyone know how to get the class.method name of the calling method?
Example
public class A
{
public void m()
{
new B().method();
}
}
public class B
{
public void method()
{
// Here I need to know who called me.
// I need to print "A.m()" in a stream.
}
}
I tought JDK 1.4 was offering that functionnality but I can't find it
anywhere.
Does anyone have an idea?
Thanks in advance,
Gilles
Does anyone know how to get the class.method name of the calling method?
Example
public class A
{
public void m()
{
new B().method();
}
}
public class B
{
public void method()
{
// Here I need to know who called me.
// I need to print "A.m()" in a stream.
}
}
I tought JDK 1.4 was offering that functionnality but I can't find it
anywhere.
Does anyone have an idea?
Thanks in advance,
Gilles