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

Ability to restrict usage of certain names when declaring local variables

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.2
    • None

    Description

      One of the errors the scriptwriter usually makes is an accidental override of certain context variables with his own local variables, which leads to nasty bugs detected only when script is executed. As of now there is only a small list of reserved words that can not be used as a valid variable name, and it is restricted to basic Jexl syntax keywords. When Jexl syntax is extended with custom functions and predefined context variables, its much easier for a local variable name to clash with predefined name, thus altering script execution further on. To exclude those errors it is needed that a custom name verification would exist, prohibiting the scripts from be successfully parsed.

      Attachments

        Issue Links

          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: