[
https://issues.apache.org/jira/browse/LUCENE-2712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir resolved LUCENE-2712.
---------------------------------
Resolution: Fixed
Assignee: Robert Muir
Committed revision 1023637, 1023638 (3x)
> 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
> Assignee: 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: [email protected]
For additional commands, e-mail: [email protected]