This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/15001] Using JNI with interpreter and interface methods yields SIGSEGV


------- Additional Comments From mckinlay at redhat dot com  2004-12-10 05:47 -------
meth->index for an interface method should contain the IDT dispatch index for
that method, which allows us to use fast interface dispatch
(_Jv_LookupInterfaceMethodIdx) for Method.invoke() calls. Unfortunately, this
index is useless without also knowing which interface the method belongs to, and
as Tom points out, we do not currently have a way to get from a JNI jMethodID to
the interface, hence this PR.

Perhaps a special flag for interface methods would be the best fix in the short
term, until we can somehow fix JNI to give us a class/interface from a jMethodID.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15001


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]