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/08/22 16:36:00 UTC

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

    [ https://issues.apache.org/jira/browse/JEXL-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17583077#comment-17583077 ] 

Henri Biestro commented on JEXL-380:
------------------------------------

Initial drop [08f7be6|https://github.com/apache/commons-jexl/commit/08f7be64d492b67e52d617e4fa81df1fc564d7a4]

> 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)