lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: FSInputStream strangeness
Date Tue, 23 Sep 2003 19:36:46 GMT
Dmitry Serebrennikov wrote:
> There are two such issues I found so far. Has anyone seen this before? 
> Is this intentional? Does some functionality depend on these?

I don't think they're intentional, and nothing should depend on them.

> - seek() calls with negative arguments or with arguments greater than 
> the file length appear to succeed
> - reading from a stream after a call to close() also succeeds (at least 
> some times).
> I think both of these are related to buffering that is performed by 
> FSInputStream. Calls to close() do not clear this buffer and subsequent 
> read calls that do not require a refill of the buffer are allowed to 
> succeed.


View raw message