Sergey Kabashnyuk wrote:

On Fri, 15 Feb 2008 16:31:07 +0200, Michael McCandless <[EMAIL PROTECTED]> wrote:


OK I found one case that can cause the assert to trip incorrectly.

Are you using empty string field names?
Not. May be empty content of the field.

Hmmm, ok. Empty content is fine. Can you provide more details on how you're creating your documents? Are you using threads? (Or if possible post the code that's creating the documents?).

I have another question.
I see you use asserts in code 2.3.0 instead of Exceptions. Why it's not very informative?

Well, asserts are meant to catch bugs, whereas exceptions are meant to catch "expected" errors. But, you're right, it would be nice if the asserts included more details about the particular values that caused problems. I'll add that for this...

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to