[ https://issues.apache.org/jira/browse/CONFIGURATION-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Heger resolved CONFIGURATION-382. ---------------------------------------- Resolution: Cannot Reproduce Closing this ticket as there is no feedback. Please reopen if you can provide more information. > Duplicate comments are created in Property file when using > setReloadingStrategy > ------------------------------------------------------------------------------- > > Key: CONFIGURATION-382 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-382 > Project: Commons Configuration > Issue Type: Bug > Components: File reloading > Environment: all platforms > Reporter: Anjugaselvan > Priority: Critical > Fix For: 1.7 > > > Whenever we set a property value in a .properties file, the comments are > created twice. For example, the following is the content of the property file > initially. > # This is comment. > PropName = PropValue1 > When we change the property value, the comment line is updated twice. > # This is comment. > # This is comment. > PropName = PropValue2 > This issue is seen only when we use setReloadingStrategy() method to notify > the property change event to another running process. > We are using the following code to notify the process which uses this > property. > propConf.setReloadingStrategy(new FileChangedReloadingStrategy()); > If we remove the above code, we do not see this issue. But if we do not use > this method, the process which uses this property doesnt get this new value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.