[Xapian-discuss] Xapian JNI questions
James Aylett
james-xapian at tartarus.org
Wed Dec 13 13:46:37 GMT 2006
On Wed, Dec 13, 2006 at 03:44:06AM +0000, Olly Betts wrote:
> > > Looking at the JNI code, the WritableDatabase.finalize() serves as
> > > such a method. So just calling that is enough to flush the database,
> > > close it, and release the lock.
> >
> > Isn't that the Java destructor, though?
>
> Yes, but it's OK to call directly too (at least from my understanding of
> Java - also note that its implementation makes it idempotent).
Oh, providing it's idempotent it's fine, yes. Sorry, hadn't bothered
to check :-(
J
--
/--------------------------------------------------------------------------\
James Aylett xapian.org
james at tartarus.org uncertaintydivision.org
More information about the Xapian-discuss
mailing list