[ https://issues.apache.org/jira/browse/LUCENE-9631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17243064#comment-17243064 ]
ASF subversion and git services commented on LUCENE-9631: --------------------------------------------------------- Commit a9e180b20aea19c1594b7d849ca4852ed767db0a in lucene-solr's branch refs/heads/master from Dawid Weiss [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=a9e180b ] LUCENE-9631: Properly override slice() on subclasses of OffsetRange. > Properly override slice() on subclasses of OffsetRange > ------------------------------------------------------ > > Key: LUCENE-9631 > URL: https://issues.apache.org/jira/browse/LUCENE-9631 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Dawid Weiss > Assignee: Dawid Weiss > Priority: Trivial > > Subclasses of OffsetRange should return a proper covariant on slice(); this > ensures the sliced copy is still an instance of the same class. > Passage should throw a RuntimeException from that method since it's not a > sub-divisible (passages contain sub-ranges). -- 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