You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2016/05/26 16:18:12 UTC

[jira] [Commented] (CONFIGURATION-633) Interpolation with multi-valued properties does not work

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

Oliver Heger commented on CONFIGURATION-633:
--------------------------------------------

If a property value consists of multiple variables or a variable embedded into other content, there is probably no way around a string-based substitution. But if only a single variable is referenced, the interpolation should result in the real value of this variable and not force a string conversion.

> Interpolation with multi-valued properties does not work
> --------------------------------------------------------
>
>                 Key: CONFIGURATION-633
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-633
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 2.0
>            Reporter: Oliver Heger
>
> In the current implementation (making use of commons lang's {{StrSubstitutor}}, interpolation is alway string-based. This works well for primitive property values, but not if a property has multiple values. A variable referencing such a property is replaced by the string-representation of the list of values.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)