I checked Jlucene and exception is thrown here only in case of error, so I'll fix function this way.
Borek > -----Original Message----- > From: Kostka Bořivoj [mailto:[email protected]] > Sent: Friday, August 20, 2010 9:43 PM > To: [email protected] > Subject: [CLucene-dev] TermVectorsWriter::close strange code > > In AddIndexesNoOptimize test I got an exception during > IndexWriter::addIndexesNoOptimize call. > > I discovered the problem is in > > void TermVectorsWriter::close(CLuceneError* err) > > where last block of code > > if ( err != NULL ) > err->set(keep.number(), keep.what()); > else > throw keep; > > is always called, but it should be called only if some error occurs, I think > > Could anybody check, if I didn't miss something? > > Borek > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > CLucene-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/clucene-developers ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ CLucene-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clucene-developers
