You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Erick Erickson (Jira)" <ji...@apache.org> on 2020/05/08 15:31:00 UTC

[jira] [Commented] (SOLR-13857) QueryParser.jj produces code that will not compile

    [ https://issues.apache.org/jira/browse/SOLR-13857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17102674#comment-17102674 ] 

Erick Erickson commented on SOLR-13857:
---------------------------------------

Good catch, this has been rendered obsolete by the Gradle build. I spent quite a bit of time when porting the regenerate task to Gradle automating the hand-edits that needed to be done, they're all part of the regenerate task, no hand-edits needed. 

And you're correct, I didn't go back and re-do the ant versions so this is gradle-only.

> 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
>          Components: query parsers
>            Reporter: Gus Heck
>            Assignee: Gus Heck
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org