[ 
https://issues.apache.org/jira/browse/LUCENE-5972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143811#comment-14143811
 ] 

Robert Muir commented on LUCENE-5972:
-------------------------------------

Also the existing logic (calling in.toString) within these Exceptions 
themselves is bogus today, as is the bogus assert != null.

This stuff needs to be removed. The ctor taking datainput should just call 
Objects.toString() instead (see corruptindexexception), so that null will not 
corrupt this exception with some bogus NPE or assertionerror.

> Index too old/new is not a corruption
> -------------------------------------
>
>                 Key: LUCENE-5972
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5972
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Ryan Ernst
>         Attachments: LUCENE-5972.patch
>
>
> {{IndexFormatTooOldException}} and {{IndexFormatTooNewException}} both extend 
> from {{CorruptIndexException}}.  But this is not a corruption, it is simply 
> an unsupported version of an index.  They should just extend {{IOException}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to