Hao Zhong created LUCENE-9296:
---------------------------------

             Summary: Throwing EOFException when reading past eof
                 Key: LUCENE-9296
                 URL: https://issues.apache.org/jira/browse/LUCENE-9296
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Hao Zhong


When reading past eof, lucene can throw three types of exceptions. 

org.apache.lucene.store.BufferedIndexInput#readBytes throws EOFException

org.apache.lucene.codecs.compressing.CompressingTermVectorsReader.TVPostingsEnum#nextPosition
 throws IllegalStateException

org.apache.lucene.queryparser.classic.FastCharStream#refill throws IOException

 

When I implement my code, I have to handle three types of exceptions. Can the 
exceptions be made consistent? I feel that EOFException is the most reasonable 
exception. 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to