lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] Updated: (LUCENE-2712) FieldBoostMapAttribute in contrib/qp is broken.
Date Sat, 16 Oct 2010 21:14:22 GMT


Robert Muir updated LUCENE-2712:

    Attachment: LUCENE-2712.patch

> FieldBoostMapAttribute in contrib/qp is broken.
> -----------------------------------------------
>                 Key: LUCENE-2712
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>            Reporter: Robert Muir
>             Fix For: 3.1, 4.0
>         Attachments: LUCENE-2712.patch
> While looking for more SuppressWarnings in lucene, i came across two of them in contrib/queryparser.
> even worse, i found these revolved around using maps with CharSequence as key.
> From the javadocs for CharSequence:
> This interface does not refine the general contracts of the equals and hashCode methods.
The result of comparing two objects that implement CharSequence is therefore, in general,
undefined. Each object may be implemented by a different class, and there is no guarantee
that each class will be capable of testing its instances for equality with those of the other.
{color:red} It is therefore inappropriate to use arbitrary CharSequence instances as elements
in a set or as keys in a map. {color}

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message