On Mar 24, Aaron M. Renn wrote:
> Hi, I'm looking to import the java.util.zip classes from gcj into Classpath's
> CVS and immediately hit the JNI v. CNI thing.  It looks like the natDeflater.cc
> and natInflater.cc files that implement the native methods from this package
> use CNI and thus are Cygnus specific.  Did anybody ever resolve anything on this?

Yes, I tried to do it via a perl script that translates a special file
either to JNI or CNI.  This idea wasn't accepted on this list, but you
can of course still use the produced JNI and CNI files (they are human
readable).

I had to do some changes to the java files, since libgcj uses a
special object for native references and since JNI forbids to get a
permanent pointer to an array.

http://www.informatik.uni-oldenburg.de/~delwi/classpath/JCL

I'm now going to Berlin for a week, so I can't answer questions
immediately.

  Jochen

Reply via email to