You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Robert Jordan (JIRA)" <ji...@apache.org> on 2010/05/01 21:23:56 UTC
[jira] Created: (LUCENENET-364) Workaround for a Mono float/Single
parsing issue
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.
[jira] Updated: (LUCENENET-364) Workaround for a Mono float/Single
parsing issue
Posted by "Robert Jordan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Jordan updated LUCENENET-364:
------------------------------------
Attachment: TestSort.diff
> 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.
[jira] Resolved: (LUCENENET-364) Workaround for a Mono float/Single
parsing issue
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Digy resolved LUCENENET-364.
----------------------------
Assignee: Digy
Resolution: Fixed
We have made similar changes previously.
{quote}
CheckHits
Java: EXPLAIN_SCORE_TOLERANCE_DELTA = 0.00005f;
.NET: EXPLAIN_SCORE_TOLERANCE_DELTA = 0.00025f; // {{See: LUCENENET-288}} Intentional diversion from Java Lucene per above comment
{quote}
So, I think It's acceptable.
I changed TestSort.cs
DIGY
> 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
> Assignee: Digy
> 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.