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

TokenException returns wrong endColumn value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.6, 2.1.0-rc-1
    • Fix Version/s: 2.1.0-rc-2, 2.1.0, 2.0.7
    • Component/s: None
    • Labels:
      None

      Description

      I'm having the following error. When an org.codehaus.groovy.syntax.TokenException is thrown, the value it returns when calling the getEndColumn() isn't the right one.
      This issue is related with GROOVY-5635, but it seems that the solution made available there isn't working because this class overrides said method, returning always "getStartColumn()+1".
      I believe that the solution is deleting such method, so the parent's implementation is used instead.

      I would really appreciate if this issue is solved for the upcoming 2.1.0 final (and 2.0.7) release because we're integrating the compiler with an IDE and this problem prevents proper error syntax highlighting.

        Attachments

        1. TestCase.groovy
          0.9 kB
          Rodolfo Cruz

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              rcruzjo Rodolfo Cruz
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: