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

Wrong end position for invalid operator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.7, 2.4.0-beta-3
    • ast builder
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: