[Xapian-devel] Gsoc: SWIG-based Java Bindings

Olly Betts olly at survex.com
Tue Mar 20 12:49:43 GMT 2012


Hi Sabrina,

On Mon, Mar 19, 2012 at 10:31:54PM +0800, sabrina wrote:
>     I am interested in the project: SWIG-based java bindings. It says a few
> things of Java bindings generated by SWIG don't work. Could you point out
> which particular part does not work?

If you look in xapian-bindings/java/SmokeTest.java you will see a lot of
the tests are commented out.  These worked with the JNI version but
don't with the SWIG version.  In some cases SWIG just wraps differently
to the JNI wrappers, and in a way which is arguably an improvement, but
many ought to work.  Another thing is to eliminate the wrapped classes
which have "SWIGTYPE" in their names, as this is SWIG's way of saying it
wrapped them as opaque blobs.

There are some other things to, but it's one of the thinner project
ideas, and for someone like you who has already implemented a new SWIG
bindings language it's definitely not going to make a big enough project
by itself.  You could combine it with working on some of the other
bindings-related project ideas though.

Cheers,
    Olly



More information about the Xapian-devel mailing list