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]

Re: Incorrect Java methods called from CNI


On Mon, 2004-05-10 at 16:36, Bryce McKinlay wrote:
> First, are you sure that the CNI .h file you generated for the class you 
> are calling is consistent with the implementation? If you added a method 
> to the class (or its superclass) and forgot to regenerate the .h files, 
> you'll encounter this problem.

I'm not adding or removing any methods from the Java library - I'm using
it as-is as much as possible.  But yes, I'm sure the .h files are
consistent - I even cleaned everything and regenerated the entire thing
from scratch to be extra sure.

> You can run "gcc -S"/"gcj -S" to get a dump of the asm being generated 
> for the caller method, and the vtable of the callee. Specifically, there 
> should be a symbol starting with "_ZTVN" in the class being called which 
> contains the vtable layout.

Thanks, I'll see what I can do with this.



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