Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1
    • Component/s: core/search
    • Labels:
      None
    • Environment:

      Eclipse 3.1.2, Fedora Core 5

      Description

      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.

        Activity

        Hide
        dmsmith DM Smith added a comment -

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

        Show
        dmsmith DM Smith added a comment - I did a bit further testing. The current behavior under Java 5 is to call this.doc();
        Hide
        yseeley@gmail.com Yonik Seeley added a comment -

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

        Show
        yseeley@gmail.com Yonik Seeley added a comment - Changes commited doc() => this.doc() Thanks for investigating this.

          People

          • Assignee:
            yseeley@gmail.com Yonik Seeley
            Reporter:
            dmsmith DM Smith
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development