commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Cooper (JIRA)" <j...@apache.org>
Subject [jira] Created: (CONFIGURATION-409) Key containing escapedDelimiter does not save() properly
Date Mon, 01 Mar 2010 18:07:05 GMT
Key containing escapedDelimiter does not save() properly
--------------------------------------------------------

                 Key: CONFIGURATION-409
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-409
             Project: Commons Configuration
          Issue Type: Bug
          Components: Expression engine
    Affects Versions: 1.6
            Reporter: Andrew Cooper


It seems that a key containing the escapedDelimiter is stored without the delimiter and the
escape is not recreated when saving the configuration. 

----
{code:title=test.java}
HierarchicalINIConfiguration inicfg = new HierarchicalINIConfiguration();
inicfg.setProperty( "Andrew L.. Cooper.first", "Andrew" );
inicfg.setProperty( "Andrew L.. Cooper.last", "Cooper" );
inicfg.setProperty( "Andrew L.. Cooper.mail", "andrew.cooper@example.com" );
inicfg.save( System.out );
System.out.println( inicfg.get( "Andrew L..Cooper.mail" );
{code}

{code:title=Expected Output}
[Andrew L. Cooper]
first = Andrew
last = Cooper
mail = andrew.cooper@example.com

andrew.cooper@example.com
{code}

{code:title=Actual Output}
[Andrew L. Cooper]

andrew.cooper@example.com
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message