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

Multiple values per pragma key

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3
    • None

    Description

      WHAT:

      The same pragma key can be used multiple times in a script however only the last value remains. For instance,

      #pragma stuff once
      #pragma stuff twice

      Results in the pragma value for key 'stuff' being 'twice'. It can be desirable to retain all values for a key as a set (preserving creation order).

      Incidentally, the getParsedText() script method should output the pragmas since they are quite necessary ro retain script functionality.

      HOW:

      The value of a pragma will become a set (LinkedHashSet) of objects as soon as more than one occurence of the key (and a different value) are used.

      The debugger will get a new flag to output pragmas (false as a default, true when used through getParsedText()).

      Attachments

        Activity

          People

            henrib Henri Biestro
            henrib Henri Biestro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: