Dawid Weiss created LUCENE-9631: ----------------------------------- Summary: 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
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