[ https://issues.apache.org/jira/browse/LUCENE-9631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dawid Weiss resolved LUCENE-9631. --------------------------------- Fix Version/s: master (9.0) Resolution: Fixed > 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 > Fix For: master (9.0) > > > 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