Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3263

THIS_EXPRESSION line/column changes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.7
    • 1.6.1
    • parser
    • None

    Description

      Looks like that VariableExpression.THIS_EXPRESSION is (at least) sometimes used for this reference present in source code - so the line and column number are configured for this constant. This means that any getLineNumber/ColumnNumber called on this variable expression behaves a bit randomly depending on the last parsed occurrence and thread visibility.

      Attachments

        1. GroovyScopeTestcase.groovy
          0.9 kB
          Petr Hejl

        Activity

          People

            blackdrag Jochen Theodorou
            phejl Petr Hejl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: