lucene-lucene-net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Jordan (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENENET-364) Workaround for a Mono float/Single parsing issue
Date Sat, 01 May 2010 19:23:56 GMT
Workaround for a Mono float/Single parsing issue
------------------------------------------------

                 Key: LUCENENET-364
                 URL: https://issues.apache.org/jira/browse/LUCENENET-364
             Project: Lucene.Net
          Issue Type: Improvement
         Environment: Mono 2.6.x
            Reporter: Robert Jordan
         Attachments: TestSort.diff

Mono is not able to parse values greater or equal to Single.MaxValues correctly, e.g.:

Single.Parse(Single.MaxValue.ToString())  throws an OverflowException.

Since Test/Search/TestSort.cs is using such a value, all of its tests are failing.

I'm aware that this issue must be fixed in Mono (it's a known issue), but since TestSort is
not about testing foat's accuracy, I'm attaching a patch the lets the tests pass on Mono.
Please take it into consideration.


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


Mime
View raw message