[
https://issues.apache.org/jira/browse/FELIX-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16935062#comment-16935062
]
Jean-Baptiste Onofré commented on FELIX-6183:
---------------------------------------------
If Felix {{Properties}} keeps the original file formatting, it's not the case
with {{TypedProperties}}.
For instance, if the original file contains:
{code}
key = value
{code}
changing the {{key}} property results to:
{code}
key = other
{code}
with {{Properties}}, whereas it's:
{code}
key = "other"
{code}
with {{TypedProperties}}.
> TypedProperties doesn't deal with Integer correctly
> ---------------------------------------------------
>
> Key: FELIX-6183
> URL: https://issues.apache.org/jira/browse/FELIX-6183
> Project: Felix
> Issue Type: Bug
> Components: Utils
> Affects Versions: utils-1.11.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> The simple following code:
> {code}
> TypedProperties typedProperties = new TypedProperties();
> typedProperties.put("sshPort", 9999);
> typedProperties.save(new File("/home/jbonofre/test.properties"));
> {code}
> shows value stored as {{I'9999"}} instead of {{"9999"}} or even {{9999}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)