Will cni be the sane native interface to c++ in openjdk U gcj?

ter et@ihear.com
Mon Dec 24 21:51:00 GMT 2007


Hi,

This is a development question from a user's point of view. Not a
compiler writer myself. I am using swig (a great program) right now to
write a java binding for an existing c++ library.  c++ is flattened to c
on the native side, and then rebuilt back into objects on the java side.
I understand cni is a much better approach. The binding from cni into
full c++ would be much less complex, especially if the c++ code has good
separation between interface and implementation.

I got on this list just to ask this question. It's been bugging me, and
I haven't found any discussion of it.

ter



More information about the Java mailing list