[ 
https://issues.apache.org/jira/browse/LUCENE-4924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir updated LUCENE-4924:
--------------------------------

    Attachment: LUCENE-4924.patch

Adrien, i did a quick pass thru the tests/test-framework and tried to fixup 
places that were still lenient about this here. I might have missed some, and i 
didnt exhaustively test yet.
                
> Make DocIdSetIterator.docID() return -1 when not positioned
> -----------------------------------------------------------
>
>                 Key: LUCENE-4924
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4924
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 5.0
>
>         Attachments: LUCENE-4924.patch, LUCENE-4924.patch
>
>
> Today DocIdSetIterator.docID() can either return -1 or NO_MORE_DOCS when the 
> enum is not positioned. I would like to only allow it to return -1 so that we 
> can have better assertions.
> (This proposal is for trunk only.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to