[Xapian-discuss] Xapian JNI questions

Olly Betts olly at survex.com
Wed Dec 13 03:48:13 GMT 2006


On Mon, Dec 11, 2006 at 03:23:59PM -0500, Eric B. Ridge wrote:
> On Dec 6, 2006, at 9:47 PM, Olly Betts wrote:
> >I think he said there's a Java API call which addresses this  
> >problem, but that the Sun documentation says it's buggy
> >and should be avoided or something like that.  Without the mail  
> >it's hard to be sure I'm not misremembering though.
> 
> There is:  java.lang.System.runFinalizersOnExit(true);

Ah yes!  Now I know the method name, I can find the mail (oddly only
my reply not your original mail, which is perhaps why I failed to find
it before).

> It might make sense to add a .close() function to WritableDatabase,  
> but I was trying to mirror the C++ class as closely as possible.

It's on my list - this causes a problem in some other scripting
languages too.  It would be handy in C++ sometimes too I think.

Cheers,
    Olly



More information about the Xapian-discuss mailing list