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

Henri Biestro closed JEXL-380.
------------------------------

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

Reply via email to