commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Cooper (JIRA)" <>
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
             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. 

HierarchicalINIConfiguration inicfg = new HierarchicalINIConfiguration();
inicfg.setProperty( "Andrew L.. Cooper.first", "Andrew" );
inicfg.setProperty( "Andrew L.. Cooper.last", "Cooper" );
inicfg.setProperty( "Andrew L.. Cooper.mail", "" ); System.out );
System.out.println( inicfg.get( "Andrew L..Cooper.mail" );

{code:title=Expected Output}
[Andrew L. Cooper]
first = Andrew
last = Cooper
mail =

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

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

View raw message