Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-202

Detect invalid (addition/subtraction/etc)-assignment operator usage with non-assignable l-value during script parsing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Labels:
      None

      Description

      While the code like

      2 = 3
      

      throws exception "assignment error in .." during parsing, the code like

      2 += 3
      

      is parsed successfully and only throws exception "illegal assignment form 0" in runtime which makes it harder for debug.

        Attachments

          Activity

            People

            • Assignee:
              henrib Henri Biestro
              Reporter:
              dmitri_blinov Dmitri Blinov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: