lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: IndexInput & GCJ
Date Wed, 13 Oct 2004 19:36:11 GMT
Andi Vajda wrote:
>> This code is generated by JavaCC.  I think the best way to fix this 
>> would be to fixup the code automatically whenever it is regenerated. 
>> So, instead of patching QueryParser.java, patch build.xml.  In the 
>> javacc-QueryParser task, add a <replace> task which replaces 
>> 'jj_la1_0()' with 'jj_la1_0_method()'.
> 
> That is a brittle kludge as the code that needs to be changed may vary
> everytime the parser is re-generated. There used to be two such methods 
> in 1.4.1 for instance. The proper way to workaround this issue is to fix 
> javacc to not generate such java code in the first place.

It is indeed a brittle kludge.

Are you willing to submit a bug report to JavaCC?

https://javacc.dev.java.net/servlets/ProjectIssues

Or even a patch?

https://javacc.dev.java.net/source/browse/javacc/

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message