[RFC/JVMTI] GetMethodDeclaringClass
Per Bothner
per@bothner.com
Tue Oct 17 18:23:00 GMT 2006
Keith Seitz wrote:
> So somehow we must maintain a mapping of jmethodIDs to their
> corresponding classes.
The question is: what does a jmethodID map to? Historically, it maps
to a (_Jv_Method*), and you can't map that to a class. But perhaps a
jmethodID should be the same as a java::lang::reflect::Method* -
does does have a reference to its declaring class.
Actually, we want to go further: Have Jv_Method be the same
as java::lang::reflect::Method. That assumes the compiler creates
a compressed data structure, which is lazily unpacked when needed,
as previously discussed.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Java-patches
mailing list