How to implement a java interface in c++?

Michael Koch konqueror@gmx.de
Thu May 18 04:35:00 GMT 2006


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/



More information about the Java mailing list