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

PropertyExpression contains wrong line,column data

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.5.7, 1.6-beta-2
    • Component/s: parser
    • Labels:
      None

      Description

      For certain kind of expressions it looks like PropertyExpression provides wrong (last)Line and (last)Column data. For the error case it is usually line == lastLine and column == lastColumn.

      For the following snippet:

      println new URL("http://google.com").getT
      
      name = "xxx"
      "User ${name}"
      

      new URL("http://google.com").getT is parsed as PropertyExpression:
      PropertyEpression: line = 1, column = 37, lastLine = 1, lastColumn = 37
      while
      objectExpression: line = 1, column = 9, lastLine = 1, lastColumn = 37
      property: line = 1. column = 38, lastLine = 3, lastColumn = 1

        Attachments

          Issue Links

            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: