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

Wrong end position for invalid operator

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.7, 2.4.0-beta-3
    • Component/s: ast builder
    • Labels:
      None

      Description

      When org.codehaus.groovy.classgen.asm.BinaryExpressionHelper encounters invalid operation (for example, ===, as mentioned in https://issuetracker.springsource.com/browse/STS-3878), it throws GroovyRuntimeException caused by SyntaxException, for which invalid operation length is always equal to 1.
      It would be nice if BinaryExpressionHelper will take into account actual length of invalid operation, so it would make it easy to mark entire incorrect operation in IDE.

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              denis_murashev Denis Murashev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: