commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Schmidt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONFIGURATION-715) PropertiesConfiguration should not trim whitespace from the property value
Date Sun, 30 Sep 2018 12:40:00 GMT

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

Patrick Schmidt commented on CONFIGURATION-715:
-----------------------------------------------

I just created a [pull request|https://github.com/apache/commons-configuration/pull/13] that
also covers CONFIGURATION-716, plus a bit more related to compatibility with java.util.Properties.
Let me know what you think.

> 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)

Mime
View raw message