JVMTI ClassLoad callback function help

Hi, In my ClassLoad function I'm tyring to get the class name from the jclass that is passed to the function so that I would have something like this:

staticvoid JNICALL

cbClassLoad(jvmtiEnv *jvmti, JNIEnv* jni, jthread thread, jclass klass)

{

constchar *class_name;

class_name = (*jni)->GetClassName(&klass);

}

Is something like this possible? I've been searching for a while but I can't find anything usefull.

[656 byte] By [Thomas.Warda] at [2007-10-3 1:38:38]
# 1
GetClassSignature should do what you want: http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/jvmti.html#GetClassSignature
alan.batemana at 2007-7-14 18:36:50 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...