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:07:56 UTC

[jira] Created: (LUCENENET-362) Java to C# "lost in translation" issue in Test/Search/TestFieldCache.cs

Java to C# "lost in translation" issue in Test/Search/TestFieldCache.cs
-----------------------------------------------------------------------

                 Key: LUCENENET-362
                 URL: https://issues.apache.org/jira/browse/LUCENENET-362
             Project: Lucene.Net
          Issue Type: Bug
         Environment: All
            Reporter: Robert Jordan
            Priority: Minor
         Attachments: TestFieldCache.diff

According to

https://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestFieldCache.java

we are supposed to increment "theFloat" and "theDouble" in  SetUp().

Note that the test does not make sense at all, because  {Double|Single}.MaxValue - 1 is still MaxValue. That's why the bug was not detected.

I guess I have to file a bug with Lucene/Java for this.


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


[jira] Updated: (LUCENENET-362) Java to C# "lost in translation" issue in Test/Search/TestFieldCache.cs

Posted by "Robert Jordan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Jordan updated LUCENENET-362:
------------------------------------

    Attachment: TestFieldCache.diff

> Java to C# "lost in translation" issue in Test/Search/TestFieldCache.cs
> -----------------------------------------------------------------------
>
>                 Key: LUCENENET-362
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-362
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: All
>            Reporter: Robert Jordan
>            Priority: Minor
>         Attachments: TestFieldCache.diff
>
>
> According to
> https://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestFieldCache.java
> we are supposed to increment "theFloat" and "theDouble" in  SetUp().
> Note that the test does not make sense at all, because  {Double|Single}.MaxValue - 1 is still MaxValue. That's why the bug was not detected.
> I guess I have to file a bug with Lucene/Java for this.

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


[jira] Resolved: (LUCENENET-362) Java to C# "lost in translation" issue in Test/Search/TestFieldCache.cs

Posted by "Digy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Digy resolved LUCENENET-362.
----------------------------

      Assignee: Digy
    Resolution: Fixed

Robert,
As you said, patch doesn't change anything. 

To be more close to Lucene.Java, I committed.
DIGY

> Java to C# "lost in translation" issue in Test/Search/TestFieldCache.cs
> -----------------------------------------------------------------------
>
>                 Key: LUCENENET-362
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-362
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: All
>            Reporter: Robert Jordan
>            Assignee: Digy
>            Priority: Minor
>         Attachments: TestFieldCache.diff
>
>
> According to
> https://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestFieldCache.java
> we are supposed to increment "theFloat" and "theDouble" in  SetUp().
> Note that the test does not make sense at all, because  {Double|Single}.MaxValue - 1 is still MaxValue. That's why the bug was not detected.
> I guess I have to file a bug with Lucene/Java for this.

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