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

THIS_EXPRESSION line/column changes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.7
    • Fix Version/s: 1.6.1
    • Component/s: parser
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: