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

Adrien Grand commented on LUCENE-6681:
--------------------------------------

Maybe we could do something like:

{code}
  public void testSizeOverridden() throws Exception {
    // make sure the method exists on MergePolicy
    MergePolicy.class.getDeclaredMethod("size", SegmentCommitInfo.class, 
IndexWriter.class);
    try {
      // and is overridden on SortingMergePolicy
      SortingMergePolicy.class.getDeclaredMethod("size", 
SegmentCommitInfo.class, IndexWriter.class);
    } catch (NoSuchMethodException e) {
      fail("SortingMergePolicy needs to override size(SegmentCommitInfo, 
IndexWriter)");
    }
  }
{code}

> SortingMergePolicy to override MergePolicy.size(...)
> ----------------------------------------------------
>
>                 Key: LUCENE-6681
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6681
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Christine Poerschke
>            Priority: Minor
>
> github pull request to follow



--
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