You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Senen de Diego (JIRA)" <ji...@apache.org> on 2011/04/08 22:17:05 UTC

[jira] [Created] (DIGESTER-146) MultiVariableExpander should work with variables defined in terms of another variables.

MultiVariableExpander should work with variables defined in terms of another variables.
---------------------------------------------------------------------------------------

                 Key: DIGESTER-146
                 URL: https://issues.apache.org/jira/browse/DIGESTER-146
             Project: Commons Digester
          Issue Type: Improvement
    Affects Versions: 2.1
            Reporter: Senen de Diego
            Priority: Trivial


Given properties defined like:
bar=bar
foobar=foo${bar}

I would expect ${foobar} being expanded as "foobar". Instead it's expanded as "foo${bar}".

A fix is trivial removing the last line in method expand:
index += varValue.length();


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DIGESTER-146) MultiVariableExpander should work with variables defined in terms of another variables.

Posted by "Simone Tripodi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIGESTER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017860#comment-13017860 ] 

Simone Tripodi commented on DIGESTER-146:
-----------------------------------------

Thanks for reporting, Senen,
can you crate and attach a patch with a testcase, please?
Many thanks in advance!

> MultiVariableExpander should work with variables defined in terms of another variables.
> ---------------------------------------------------------------------------------------
>
>                 Key: DIGESTER-146
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-146
>             Project: Commons Digester
>          Issue Type: Improvement
>    Affects Versions: 2.1
>            Reporter: Senen de Diego
>            Priority: Trivial
>
> Given properties defined like:
> bar=bar
> foobar=foo${bar}
> I would expect ${foobar} being expanded as "foobar". Instead it's expanded as "foo${bar}".
> A fix is trivial removing the last line in method expand:
> index += varValue.length();

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira