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: 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


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