lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <daniel.na...@t-online.de>
Subject Re: svn commit: r156600 - in lucene/java/trunk/src: java/org/apache/lucene/queryParser/precedence/PrecedenceQueryParser.java java/org/apache/lucene/queryParser/precedence/PrecedenceQueryParser.jj test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.java
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.

regards
 Daniel

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


Mime
View raw message