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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.1
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: