[RFC/JVMTI] GetMethodDeclaringClass
Keith Seitz
keiths@redhat.com
Tue Oct 17 18:42:00 GMT 2006
Andrew Haley wrote:
> AFAICS we just need to make sure that all methods for interpreted
> classes are pushed with _Jv_PushClass. Then to get your class,
>
> class = ncodeMap->get (jmethodID->ncode);
I thought about doing that at one time, but I was (too?) worried about
an invalid jmethodID wreaking havoc. Is there a way to guard against
something like this or otherwise validate the jmethodID before
dereferencing it?
Perhaps I'm being too paranoid?
Keith
More information about the Java-patches
mailing list