Incorrect Java methods called from CNI

Dave Menendez dave@sycamore.us
Mon May 10 20:49:00 GMT 2004


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /