lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <>
Subject Re: svn commit: r156600 - in lucene/java/trunk/src: java/org/apache/lucene/queryParser/precedence/ java/org/apache/lucene/queryParser/precedence/PrecedenceQueryParser.jj test/org/apache/lucene/queryParser/precedence/
Date Wed, 09 Mar 2005 14:37:56 GMT
On Wednesday 09 March 2005 10:52, Erik Hatcher wrote:

> It's a nuisance to have that static method when making a subclass of
> QueryParser - since static methods are not overridable it would be easy
> to mistakenly call the parent static parse method which would
> instantiate QueryParser rather than QueryParserSubclass.

Sorry, I still don't understand: I just implemented MyQueryParser which 
extends QueryParser as a test that has a method static public Query 
parse(String expression, String field, Analyzer analyzer). When I call 
MyQueryParser.parse(...), my method is called, as I would have expected.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message