lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4723) sort order different in branch_4x than trunk
Date Tue, 16 Apr 2013 21:27:16 GMT

    [ https://issues.apache.org/jira/browse/SOLR-4723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633387#comment-13633387
] 

Uwe Schindler commented on SOLR-4723:
-------------------------------------

We can fix the bug also in Java 6, because Float.compare(float,float) and Double.compare(double,double)
are there since Java 1.4.

It is only integer's compare which iss missing.

So we should really use the correct Double/Float functions:
- [http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Double.html#compare(double, double)]
- [http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Float.html#compare(float, float)]
                
> sort order different in branch_4x than trunk
> --------------------------------------------
>
>                 Key: SOLR-4723
>                 URL: https://issues.apache.org/jira/browse/SOLR-4723
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: SOLR-4723_test.patch
>
>
> I will buy a beer to whoever figures out why +0 sorts before -0 in branch_4x, but works
correctly in trunk :)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message