Grant Ingersoll wrote:
   try {
     value = field.stringValue();
assertTrue("Should not be able to read value: " + value + " since the reader is closed", false);
   } catch (Exception e) {
       }
 [ ... ]
This test fails, and I don't think it should. The assert in the try block is activated. What am I missing?

I think things are working correctly and the bug is in the test.

The behavior when accessing a closed IndexInput is undefined. In practice, with buffered input, things will probably work fine up until the end of the buffer.

Doug

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

Reply via email to