Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9631

Properly override slice() on subclasses of OffsetRange

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None
    • New

    Description

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

      Attachments

        Activity

          People

            dweiss Dawid Weiss
            dweiss Dawid Weiss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: