lucene-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/LUCENE-2712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Muir updated LUCENE-2712:
--------------------------------

    Attachment: LUCENE-2712.patch

> FieldBoostMapAttribute in contrib/qp is broken.
> -----------------------------------------------
>
>                 Key: LUCENE-2712
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2712
>             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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message