You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "DM Smith (JIRA)" <ji...@apache.org> on 2006/06/22 15:51:29 UTC

[jira] Created: (LUCENE-611) TestConstantScoreRangeQuery does not compile with ecj

TestConstantScoreRangeQuery does not compile with ecj
-----------------------------------------------------

         Key: LUCENE-611
         URL: http://issues.apache.org/jira/browse/LUCENE-611
     Project: Lucene - Java
        Type: Bug

  Components: Search  
    Versions: 2.0.0    
 Environment: Eclipse 3.1.2, FC5
    Reporter: DM Smith


TestConstantScoreRangeQuery has an assertEquals(String, Float, Float)
but most of the calls to assertEquals are (String, int, int).

ecj complains with the following error:
The method assertEquals(String, float, float) is ambiguous for the type TestConstantScoreRangeQuery

The simple solution is to supply an assertEquals(String, int, int) which calls Assert.assertEquals(String, int, int)

Patch to follow.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (LUCENE-611) TestConstantScoreRangeQuery does not compile with ecj

Posted by "DM Smith (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LUCENE-611?page=comments#action_12417319 ] 

DM Smith commented on LUCENE-611:
---------------------------------

I have checked all of trunk/src/{java,demo,test} but not gcj. I have not checked any of contrib yet.
Give me a bit and I'll check these out also.

> TestConstantScoreRangeQuery does not compile with ecj
> -----------------------------------------------------
>
>          Key: LUCENE-611
>          URL: http://issues.apache.org/jira/browse/LUCENE-611
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Versions: 2.0.0
>  Environment: Eclipse 3.1.2, FC5
>     Reporter: DM Smith
>  Attachments: TestConstantScoreRangeQueryPatch.txt
>
> TestConstantScoreRangeQuery has an assertEquals(String, Float, Float)
> but most of the calls to assertEquals are (String, int, int).
> ecj complains with the following error:
> The method assertEquals(String, float, float) is ambiguous for the type TestConstantScoreRangeQuery
> The simple solution is to supply an assertEquals(String, int, int) which calls Assert.assertEquals(String, int, int)
> Patch to follow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (LUCENE-611) TestConstantScoreRangeQuery does not compile with ecj

Posted by "DM Smith (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LUCENE-611?page=all ]

DM Smith updated LUCENE-611:
----------------------------

    Attachment: TestConstantScoreRangeQueryPatch.txt

> TestConstantScoreRangeQuery does not compile with ecj
> -----------------------------------------------------
>
>          Key: LUCENE-611
>          URL: http://issues.apache.org/jira/browse/LUCENE-611
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Versions: 2.0.0
>  Environment: Eclipse 3.1.2, FC5
>     Reporter: DM Smith
>  Attachments: TestConstantScoreRangeQueryPatch.txt
>
> TestConstantScoreRangeQuery has an assertEquals(String, Float, Float)
> but most of the calls to assertEquals are (String, int, int).
> ecj complains with the following error:
> The method assertEquals(String, float, float) is ambiguous for the type TestConstantScoreRangeQuery
> The simple solution is to supply an assertEquals(String, int, int) which calls Assert.assertEquals(String, int, int)
> Patch to follow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (LUCENE-611) TestConstantScoreRangeQuery does not compile with ecj

Posted by "DM Smith (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LUCENE-611?page=comments#action_12417333 ] 

DM Smith commented on LUCENE-611:
---------------------------------

Other than gcj, everything compiles with ecj without error (given the attached patch).
The gcj fails on an import which has nothing to do with ecj but with my building the build path.

Gdata as expected needs to be compiled as Java 5. I compiled everything else under both 1.5 and 1.4 compatibility.

I did find that two contrib files are duplicated. These are:
./queries/src/java/org/apache/lucene/search/similar/MoreLikeThis.java
./similarity/src/java/org/apache/lucene/search/similar/MoreLikeThis.java

./queries/src/java/org/apache/lucene/search/similar/SimilarityQueries.java
./similarity/src/java/org/apache/lucene/search/similar/SimilarityQueries.java

The first pair only differed by whitespace.
The second pair only by a comment and the style of imports.

There is a dependency on queries by xml-query-parser, but non on similarity.
So I'd suggest wacking similarity.

> TestConstantScoreRangeQuery does not compile with ecj
> -----------------------------------------------------
>
>          Key: LUCENE-611
>          URL: http://issues.apache.org/jira/browse/LUCENE-611
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Versions: 2.0.0
>  Environment: Eclipse 3.1.2, FC5
>     Reporter: DM Smith
>  Attachments: TestConstantScoreRangeQueryPatch.txt
>
> TestConstantScoreRangeQuery has an assertEquals(String, Float, Float)
> but most of the calls to assertEquals are (String, int, int).
> ecj complains with the following error:
> The method assertEquals(String, float, float) is ambiguous for the type TestConstantScoreRangeQuery
> The simple solution is to supply an assertEquals(String, int, int) which calls Assert.assertEquals(String, int, int)
> Patch to follow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (LUCENE-611) TestConstantScoreRangeQuery does not compile with ecj

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LUCENE-611?page=comments#action_12417311 ] 

Yonik Seeley commented on LUCENE-611:
-------------------------------------

Are there any other ecj related compile issues?
I'd rather fix all lucene-core related ones in a single JIRA isse/patch.

> TestConstantScoreRangeQuery does not compile with ecj
> -----------------------------------------------------
>
>          Key: LUCENE-611
>          URL: http://issues.apache.org/jira/browse/LUCENE-611
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Versions: 2.0.0
>  Environment: Eclipse 3.1.2, FC5
>     Reporter: DM Smith
>  Attachments: TestConstantScoreRangeQueryPatch.txt
>
> TestConstantScoreRangeQuery has an assertEquals(String, Float, Float)
> but most of the calls to assertEquals are (String, int, int).
> ecj complains with the following error:
> The method assertEquals(String, float, float) is ambiguous for the type TestConstantScoreRangeQuery
> The simple solution is to supply an assertEquals(String, int, int) which calls Assert.assertEquals(String, int, int)
> Patch to follow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Resolved: (LUCENE-611) TestConstantScoreRangeQuery does not compile with ecj

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LUCENE-611?page=all ]
     
Yonik Seeley resolved LUCENE-611:
---------------------------------

    Fix Version: 2.0.1
     Resolution: Fixed
      Assign To: Yonik Seeley

Thanks, I just commited this.

> TestConstantScoreRangeQuery does not compile with ecj
> -----------------------------------------------------
>
>          Key: LUCENE-611
>          URL: http://issues.apache.org/jira/browse/LUCENE-611
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Versions: 2.0.0
>  Environment: Eclipse 3.1.2, FC5
>     Reporter: DM Smith
>     Assignee: Yonik Seeley
>      Fix For: 2.0.1
>  Attachments: TestConstantScoreRangeQueryPatch.txt
>
> TestConstantScoreRangeQuery has an assertEquals(String, Float, Float)
> but most of the calls to assertEquals are (String, int, int).
> ecj complains with the following error:
> The method assertEquals(String, float, float) is ambiguous for the type TestConstantScoreRangeQuery
> The simple solution is to supply an assertEquals(String, int, int) which calls Assert.assertEquals(String, int, int)
> Patch to follow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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