You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (Jira)" <ji...@apache.org> on 2022/09/12 17:37:00 UTC

[jira] [Resolved] (JEXL-380) Multiple values per pragma key

     [ https://issues.apache.org/jira/browse/JEXL-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro resolved JEXL-380.
--------------------------------
    Resolution: Fixed

Commit [656fcea|https://github.com/apache/commons-jexl/commit/656fceaa1ca27f719a98213a05f5f6aea637ed2]

> Multiple values per pragma key 
> -------------------------------
>
>                 Key: JEXL-380
>                 URL: https://issues.apache.org/jira/browse/JEXL-380
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 3.2.1
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>            Priority: Major
>             Fix For: 3.3
>
>
> WHAT:
> The same pragma key can be used multiple times in a script however only the last value remains. For instance,
> {code:java}
> #pragma stuff once
> #pragma stuff twice{code}
> 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()).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)