You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Kevin Risden (Jira)" <ji...@apache.org> on 2022/10/28 18:17:00 UTC

[jira] [Created] (SOLR-16509) All query classes should be immutable

Kevin Risden created SOLR-16509:
-----------------------------------

             Summary: All query classes should be immutable
                 Key: SOLR-16509
                 URL: https://issues.apache.org/jira/browse/SOLR-16509
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query
            Reporter: Kevin Risden


As part of investigating SOLR-16489, it was found that there are Query classes in Solr that extend https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/search/Query.java and are not immutable. One example being https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/search/WrappedQuery.java

These classes should have final fields and no setters. They should be effectively immutable.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org