This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: CNI and interface methods
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