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: How to implement a java interface in c++?


On Wed, May 17, 2006 at 04:36:05PM -0700, David Daney wrote:
> You cannot extend a java class in C++.  You will probably have to change 
> your architecture so that you don't do this.
> 
> The CNI C++ class hierarchy comes from the java code.  It is not 
> supported to extend it with pure C++ code.

That is correct. The only way I see fo you is the subclass in java code
and impement all methods of that class in C++. Thats easily possible
with CNI. And it should be fast.


Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/


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