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

Michael Busch updated LUCENE-781:
---------------------------------

    Attachment: lucene-781.patch

This patch:

   * Adds the new class MultiSegmentReader which contains almost
     all code from MultiReader, except the public constructor.
         
   * Makes MultiTermEnum, MultiTermDocs and MultiTermPositions
     inner, static classes of MultiSegmentReader.
         
   * Adds the method isCurrent() to MultiReader, which recursively
     checks if all subreaders are up to date.

   * MultiReader now throws UnsupportedOperationException when
     isOptimized() or getVersion() is called.
         
   * Enables the isCurrent() test in TestMultiReader that was
     disabled due to this issue.
         
All tests pass.

> NPE in MultiReader.isCurrent() and getVersion()
> -----------------------------------------------
>
>                 Key: LUCENE-781
>                 URL: https://issues.apache.org/jira/browse/LUCENE-781
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Daniel Naber
>            Assignee: Michael Busch
>         Attachments: lucene-781.patch, multireader.diff, multireader.diff, 
> multireader_test.diff, multireader_test.diff
>
>
> I'm attaching a fix for the NPE in MultiReader.isCurrent() plus a testcase. 
> For getVersion(), we should throw a better exception that NPE. I will commit 
> unless someone objects or has a better idea.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to