You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2018/10/02 19:56:00 UTC

[jira] [Commented] (CONFIGURATION-715) PropertiesConfiguration should not trim whitespace from the property value

    [ https://issues.apache.org/jira/browse/CONFIGURATION-715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16636032#comment-16636032 ] 

Oliver Heger commented on CONFIGURATION-715:
--------------------------------------------

Impressive patch! I have applied it (with minor changes, just added some @since tags) in revision 1842650.

Ideally, we could add a sentence to the user's guide mentioning the new IOFactory class as an alternative when stricter compatibility to java.util.Properties is required. Do you want to create a corresponding patch, too?

Also, if you want to be added to the contributors section in pom.xml, just send us the data you want to get in.

Many thanks again!

> PropertiesConfiguration should not trim whitespace from the property value
> --------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-715
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-715
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Patrick Schmidt
>            Priority: Major
>
> Currently, PropertiesConfiguration will trim all trailing whitespace from property values. This is different from how java.util.Properties behaves. The Javadoc explicitly states
> {code:java}
> All remaining characters on the line become part of the associated element string{code}
> The responsible code is in the method _readProperty()_ of _PropertiesReader_.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)