commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senen de Diego (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIGESTER-146) MultiVariableExpander should work with variables defined in terms of another variables.
Date Fri, 08 Apr 2011 20:17:05 GMT
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

Mime
View raw message