You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/10/16 23:14:22 UTC

[jira] Created: (LUCENE-2712) FieldBoostMapAttribute in contrib/qp is broken.

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


[jira] Resolved: (LUCENE-2712) FieldBoostMapAttribute in contrib/qp is broken.

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2712) FieldBoostMapAttribute in contrib/qp is broken.

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ 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