Java interface classes in C++
Per Bothner
per@bothner.com
Tue Oct 21 17:33:00 GMT 2003
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/
More information about the Gcc
mailing list