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/21 22:52:31 UTC

[jira] Created: (LUCENE-610) BooleanScorer2 does not compile with ecj

BooleanScorer2 does not compile with ecj
----------------------------------------

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

  Components: Search  
    Versions: 2.0.0    
 Environment: Eclipse 3.1.2, Fedora Core 5
    Reporter: DM Smith


BooleanScorer2, derived from scorer, has two inner classes both derived, ultimately, from Scorer.
As such they all define doc() or inherit it.
ecj produces an error when doc() is called from score in the inner classes in the methods
        countingDisjunctionSumScorer
    and
        countingConjunctionSumScorer

The error message is:
    The method doc is defined in an inherited type and in an enclosing scope.

The affected lines are: 160, 161, 178, and 179


I have run the junit test TestBoolean2 (as well as all the others) with
        doc()
    changed to
        BooleanScorer2.this.doc()
    and also to:
        this.doc();
The result was that the tests passed for both.

I added debug statements to all the doc methods and the score methods in the affected classes, but I could not determine what it should be.


-- 
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-610) BooleanScorer2 does not compile with ecj

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

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

Changes commited
doc() => this.doc()
Thanks for investigating this.

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

>   Components: Search
>     Versions: 2.0.0
>  Environment: Eclipse 3.1.2, Fedora Core 5
>     Reporter: DM Smith
>     Assignee: Yonik Seeley
>      Fix For: 2.0.1

>
> BooleanScorer2, derived from scorer, has two inner classes both derived, ultimately, from Scorer.
> As such they all define doc() or inherit it.
> ecj produces an error when doc() is called from score in the inner classes in the methods
>         countingDisjunctionSumScorer
>     and
>         countingConjunctionSumScorer
> The error message is:
>     The method doc is defined in an inherited type and in an enclosing scope.
> The affected lines are: 160, 161, 178, and 179
> I have run the junit test TestBoolean2 (as well as all the others) with
>         doc()
>     changed to
>         BooleanScorer2.this.doc()
>     and also to:
>         this.doc();
> The result was that the tests passed for both.
> I added debug statements to all the doc methods and the score methods in the affected classes, but I could not determine what it should be.

-- 
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-610) BooleanScorer2 does not compile with ecj

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

DM Smith commented on LUCENE-610:
---------------------------------

I did a bit further testing. The current behavior under Java 5 is to call this.doc();


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

>   Components: Search
>     Versions: 2.0.0
>  Environment: Eclipse 3.1.2, Fedora Core 5
>     Reporter: DM Smith

>
> BooleanScorer2, derived from scorer, has two inner classes both derived, ultimately, from Scorer.
> As such they all define doc() or inherit it.
> ecj produces an error when doc() is called from score in the inner classes in the methods
>         countingDisjunctionSumScorer
>     and
>         countingConjunctionSumScorer
> The error message is:
>     The method doc is defined in an inherited type and in an enclosing scope.
> The affected lines are: 160, 161, 178, and 179
> I have run the junit test TestBoolean2 (as well as all the others) with
>         doc()
>     changed to
>         BooleanScorer2.this.doc()
>     and also to:
>         this.doc();
> The result was that the tests passed for both.
> I added debug statements to all the doc methods and the score methods in the affected classes, but I could not determine what it should be.

-- 
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