This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Java interface classes in C++


Nathan Sidwell wrote:

In fixing 12335 I came across some ambiguity with extern "Java" classes.
Is any of the attached valid?

I'd say no. 'extern "Java"' means we use the Java ABI (and Java types) for the class. Classes Five and Six do multiple inheritance, which is not part of the Java ABI. (Actually, I've always considered Java interfaces to be equivalent to C++ virtual inheritance of an abstract no-field class, but CNI does not implement this correspondence.) -- --Per Bothner per@bothner.com http://per.bothner.com/



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