You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2020/10/13 00:37:00 UTC
[jira] [Updated] (CONFIGURATION-769) commons configuration
addProperty method replaces < > with < >
[ https://issues.apache.org/jira/browse/CONFIGURATION-769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory updated CONFIGURATION-769:
------------------------------------------
Fix Version/s: (was: 2.8)
> commons configuration addProperty method replaces < > with < >
> ------------------------------------------------------------------
>
> Key: CONFIGURATION-769
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-769
> Project: Commons Configuration
> Issue Type: Bug
> Components: Format
> Affects Versions: 2.6
> Reporter: Deepraj jha
> Priority: Critical
>
> I am using latest Apache commons configuration 2 version 2.6 and when trying to invoke addProperty it replaces < > with < >.
> example :
> cfg.addProperty("data.array(0).var(0)", "<var name=myds1>" );
> cfg.write(new FileWriter(this.XmlFile));
> Here cfg is XMLConfiguration Object
> The resulting xml is :
> {{ <var><var name=myds1></var>}}
> Expected is :
> {{ "<var name=myds1>"}}
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)