Gus Heck created SOLR-13857:
-------------------------------

             Summary: QueryParser.jj produces code that will not compile
                 Key: SOLR-13857
                 URL: https://issues.apache.org/jira/browse/SOLR-13857
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query parsers
            Reporter: Gus Heck
            Assignee: Gus Heck


There are 2 problems that have crept into the parser generation system.
 # SOLR-8764 removed deprecated methods that are part of a generated interface 
(and the implementation thereof). It's kind of stinky that Javacc is generating 
an interface that includes deprecated methods, but deleting them from the 
generated class means that re-generation causes compiler errors, so this should 
probably be reverted.
 # SOLR-11662 changed the signature of 
org.apache.solr.parser.QueryParser#newFieldQuery to add a parameter, but did 
not update the corresponding portion of the QueryParser.jj file, and so the 
method signature reverts upon regeneration, causing compile errors.
 # There are a few places where string concatenation was turned to .append()

The pull request to be attached soon fixes these two issues such that running 
ant javacc-QueryParser will once again produce code that compiles.

 



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

Reply via email to