This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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] |
> On Tue, 2004-12-07 at 09:35 -0700, Tom Tromey wrote:In what cases do we not have a method index? In general the index for an interface method should not be -1. see: _Jv_Linker::layout_interface_methods(). It sounds like a bug if you are seeing -1 values at runtime.
> > Some versions of gcj did have a bug when calling an interface method > > via JNI. Is that what you're running into? Do you get a > > NullPointerException or something?
This is also broken with CVS HEAD.
I suggest this patch. The idea is pretty simple: if we have no method
index, and no code pointer, look the method up by name.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |