Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3408

Query tests should avoid casting to QueryManagerImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.1
    • None
    • None

    Description

      A lot of query tests flush the search index before to ensure consistency.

      Getting the SearchIndex instance happens via casting the QueryManager to the jackrabbit QueryManagerImpl:
      ((QueryManagerImpl) qm)

      I'd like to change this direct casting into a instanceof verification.

      This doesn't fix everything but at least it will allow other projects (like oak) to run most of the query tests, without running into ClassCastException(s).

      Attachments

        Activity

          People

            stillalex Alex Deparvu
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: