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

ListExpression, MapExpression inside PropertyExpression 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: None
    • Labels:
      None

      Description

      Looks like for certain cases list and map inside PropertyExpression (objectExpression) contains wrong column data.

      Sample:

      def listTest() {
          // "java.util.List"
         ["one","two"].listIter
      }
      
      def mapTest() {
          // "java.util.Map"
        [1:"one", 2:"two"].ent
      }
      

      Usually the data for them looks like lineNumber=correctLine, columnNumber=X, lastLineNumber=correctLine, lastColumnNumber=X+1
      Enclosing PropertyExpression data are correct.

        Attachments

          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: