CNI and interface methods

David Daney ddaney@caviumnetworks.com
Fri Apr 3 19:06:00 GMT 2009


Stephen Kell wrote:

> (whereas I'd been
> worried that maybe some multiple-inheritance-style pointer adjustment
> was not being done and was causing the segfaults I was seeing). 
> 

GCJ doesn't use C++ style multiple inheritance to implement interfaces. 
  The initialization of the interface dispatch tables is done at runtime 
by some somewhat trick code.

Actually I am surprised that you can call interface methods from CNI. 
You learn something new everyday.

David Daney



More information about the Java mailing list