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

PropertyExpression contains wrong line,column data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.5.7, 1.6-beta-2
    • parser
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: