lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Blain (JIRA)" <>
Subject [jira] Commented: (LUCENE-452) PrefixQuery is missing the equals() method
Date Wed, 12 Oct 2005 16:01:25 GMT
    [ ] 

Guillaume Blain commented on LUCENE-452:

I'd just like to say that I simply copied and changed the class casting of the TermQuery's
equals and hashcode to the PrefixQuery's internals which suggest they might in fact have a
common ancestor class with those two methods (and perharps other Query classes as well). I'm
happy to see this promptly resolved, but I wouldn't like to take credit that isn't mine :)

> PrefixQuery is missing the equals() method
> ------------------------------------------
>          Key: LUCENE-452
>          URL:
>      Project: Lucene - Java
>         Type: Improvement
>     Versions: 1.9
>     Reporter: Guillaume Blain
>     Priority: Minor
>      Fix For: 1.9
>  Attachments:
> The PrefixQuery is inheriting the java.lang.Object's object default equals method. This
makes it hard to have test working of PrefixFilter or any other task requiring equals to work
proerply (insertion in Set, etc.). The equal method should be very similar, not to say identical
except for class casting, to the equals() of TermQuery. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

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

View raw message